applied modified \mathd command to diff_ma.tex