[OS X TeX] Concatinating backslash and id

Morten Høgholm morten.hoegholm at gmail.com
Thu May 11 03:52:46 EDT 2006


On 5/11/06, Peder Axensten <peder at axensten.se> wrote:
> Thank you very much!
>
> A variant of the question:
> If I want to write the newcommand to a text file, something like:
>
>        \immediate\write\fileid{\newcommand{\#1}{#2}}%
>
> The same problem here, I want to concatenate \ and #1. How can I do
> that?

LaTeX provides a single \ for writing to files and message under the
name \@backslashchar.

Morten
------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the MacOSX-TeX mailing list