\copyrightTim \copyrightVincent \begin{frame}[fragile]{Eigen commando's} \begin{minted}[linenos=false]{tex} \newcommand{\Mod}[1]{\ (\mathrm{mod}\ #1)} Because $ x $ is even we have \begin{align*} x &= 0\ (\mathrm{mod}\ #1)\\ x &= 0\Mod{2} \end{align*} \end{minted} \bgroup \def\Mod#1{\ (\mathrm{mod}\ #1)} Because $ x $ is even we have \begin{align*} x &= 0\ (\mathrm{mod}\ 2)\\ x &= 0\Mod{2} \end{align*} \egroup \end{frame}