I'm currently writing a scientific report where I use siunitx for my SI units. So instead of always typing e.g
\SI{2}{\celsius}
I wanted to create a new command to faciliate the writing. However, I get the error stated in the title and I have no clue how to make it work. I use a new command for \SI{}{\uL}
which does its job. Where am I making a mistake?Code: Select all
% test
\documentclass{scrartcl}
\usepackage{siunitx}
\sisetup{load-configurations = abbreviations}
\newcommand{\cel}[1]{\SI{#1}{\celsius}
\begin{document}
\cel{2}
\end{document}
Runaway argument?
{\SI {##1}{\celsius } \par \begin {document} \cel {2} \end {document}\ETC.
! File ended while scanning use of \@argdef.
<inserted text>
\par
<*> test.tex