Target structure and in-beam electron spectra