Email Record: Theory and computation for synchrotron radiation spectroscopy :