[texhax] Nested macro definition problem

José Romildo Malaquias j.romildo at gmail.com
Fri Apr 23 16:58:23 CEST 2010


The attached simplified file test2.tex demonstrates de problem I am
having when defining nested macros.

Basically I need to define the macros:

  \def\ma{%
    \def\mb{%
      \def\mc###1{%
        \textbf{###1}}}}

in a LaTeX document, but pdflatex finds the following error:

  ! Illegal parameter number in definition of \ma.
  <to be read again> 
                     1
  l.5     \def\mc###1
                     {%

Why pdflatex does not accepts this macro definition? How can I fix this
problem?

Regards,

Romildo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test2.tex
Type: application/x-tex
Size: 163 bytes
Desc: not available
URL: <http://tug.org/pipermail/texhax/attachments/20100423/b47be51d/attachment-0001.tex>


More information about the texhax mailing list