 This research analyzes and predicts the emission of coherent transition radiation by few femtosecond and attosecond electron pulses using optimized geometries to avoid influences from beam diameter and velocity mismatch, resulting in visible and ultraviolet optical radiation that characterizes these pulses in time, with sufficient total amount of radiation for pulse-length characterization This article was authored by M. V. Zarev and P. Baume