[Tugindia] Maximum number of parameters for \newcommand

PK Das pk.das.1958 at gmail.com
Thu Mar 26 14:52:57 CET 2009


Dear all
Is there a maximum number of parameters for \newcommand? The following
code doesn't compile, with pdflatex saying 'You already have nine
parameters'. What is another way to do this?

\newcommand{\myticket}[28]{\ticket{%
   \put(7,38){\makebox[0mm]{\bfseries\Large #1}}
   \put(#2,#3){#4}
   \put(#5,#6){#7}
   \put(#8,#9){#10}
   \put(#11,#12){#13}
   \put(#14,#15){#16}
   \put(#17,#18){#19}
   \put(#20,#21){#22}
   \put(#23,#24){#25}
   \put(#26,#27){#28}
}}

\begin{document}
\myticket{00001}{3}{28}{11}{3}{28}{14}{10}{28}{22}{17}{8}{31}{24}{28}{40}{31}{28}{47}{31}{8}{47}{45}{8}{73}{59}{18}{92}
\end{document}

Thanks in advance

Das


More information about the tugindia mailing list