I'm creating a class which should define a command if some package is available:
\IfFileExists{eforms.sty}{
\usepackage[xetex]{eforms}
\everyTextField{\textFont{GaramondNo8}\textSize{12}}
\newcommand{\dsaTextInput}[3][12]{\raisebox{-0.35ex}{\textField[\textSize{#1}]{#2}{#3}{1em}}}
}{}
However, if I try to compile this, I get:
! Illegal parameter number in definition of \reserved@a.
<to be read again>
1
l.7 }{}
l.7 is the last line of the code I've shown. If I remove the conditional, it works as expected. What am I doing wrong?
\renewcommandneed to double up the#within a\foreach. – Werner Feb 06 '14 at 18:27