The procedure to calculate the atomic scattering factor in case of XRD is fairly clear and one can do it manually. I am wondering if it can done for diffraction in TEM.
(The first two links are substantially the same, you may request full-text...; the author claims in the abstract that 'Numerical procedures and routines for calculating these factors are described, ')
Article Electron atomic scattering factors and scattering potentials...