[OS X TeX] Concatinating backslash and id

Peder Axensten peder at axensten.se
Wed May 10 17:09:24 EDT 2006


I need to define a macro, but I have the macro name without a backslash.
How can I concatenate them (\ and #1, below)?

\newcommand{\mynewcommand}[2]{%
     \newcommand{\#1}{#2}%
}

/Peder
+46-90-786.7719 (work)
+46-90-32344 (home)




------------------------- 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