| 1 |
For programmers, it is quite common to use the name of a macro (for |
| 2 |
instance `foo' for the macro \foo, in other words, the letters f, o, |
| 3 |
and o). For this purpose, it is customary to call \string which does |
| 4 |
this sort of things... except that it prepends the escape character, |
| 5 |
controlled by the counter \escapechar, in front of the name. The |
| 6 |
traditional way of getting rid of it, is to set \escapechar to -1 |
| 7 |
(without forgetting to restore the proper value at the end of the |
| 8 |
process) or to make use of \@gobble. The former has the drawback not |
| 9 |
to be expandible while the second isn't completely reliable. Here we |
| 10 |
extend the expandible methods to make it reliable. |
| 11 |
|
| 12 |
This material is subject to the LaTeX Project Public License. |
| 13 |
See http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html |
| 14 |
for the details of that license. |