I'm having trouble with an argument that I need to "protect" (a concept I don't completely grasp‡) in order to avoid errors. When I write
\command{\argument}
I get an error; but when I try to avoid the error by writing
\command{\protect\argument}
I do not get the output I expect. For example, using Tufte-LaTeX, I have to choose between crashing, or failing to format a date as desired:
\documentclass[]{tufte-handout}
\usepackage[orig,american]{isodate}
\begin{document}
%\allcaps{\today} % ! Illegal parameter number in definition of \reserved@a.
\allcaps{\protect\today} % Fails to change case
\end{document}
‡This may not be my problem at all, but I'm guessing its the source.
isodate. – egreg Mar 21 '12 at 14:57