Transverse confinement of electron beams in a 2D optical lattice for compact coherent x-ray sources. (23rd August 2021)