Tagged Questions
10
votes
2answers
418 views
Removing a backslash from a character sequence
For indexing I wanted to write a macro \macroname that removes leading backslashes from macro names but leaves the names of environments untouched. That is
\macroname{\relax} --> relax
...
3
votes
2answers
371 views
How listing and verbatim do to escape special character?
I use one macro to display text using texttt style. For the moment this macro is very basic. For example, if I want to use the character _, its catcode must be changed.
Is there a clever way to ...