Ab initio theory and calculations of X-ray spectra | Synapse