On Jul 17, 2007, at 5:03 PM, Hellmut Weber wrote:

AS LONG AS you don't have "illegal" cahrs in your path (Like '_' which I use quite a lot.

Does anybody know how to modify TeX strings as 'Test_01' to 'Test \_01', i.e. escape the illegal chars with a backslash.
I'm sure it is possible but my TeX knowledge is not sufficient.

Change the catcode so that underscore is treated as a letter instead:
\catcode`\_=12\relax

should do it.

Since you're at the end of a document no need to restore it I think, but if you wish to, doing so is left as an exercise for the reader.

William

--
William Adams
senior graphic designer
Fry Communications


Reply via email to