Title: Inelastic x-ray scattering including resonance phenomena