$$
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Self-defined math definitions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Math symbol commands
\newcommand{\intd}{\,{\rm d}} % Symbol 'd' used in integration, such as 'dx'
\newcommand{\diff}{{\rm d}} % Symbol 'd' used in differentiation
...
$$