Macro for the computation of (anti) d spectra