[texhax] Use of \symbol{`\_} versus \symbol{'137} to produce \verb+_+ in moving arguments.

Uwe Lueck uwe.lueck at web.de
Mon Mar 2 22:24:23 CET 2015


Beuthe, Thomas wrote at 2015-02-23 21:02:
> Since \verb cannot be used in moving arguments like \chapter and \section

BTW, \verb's catcode changing, especially for backslash and underscore, 
fails in *any* macro argument (even "stationary"), e.g., \texttt{\verb+_+}.
The package cprotect

    http://ctan.org/pkg/cprotect

seems to help with the situation.

Cheers,

    Uwe.


More information about the texhax mailing list