Text this: Theory and computation for synchrotron radiation spectroscopy :