[OS X TeX] Plain TeX question
Eric van der Oord
eric.van-der-oord at wanadoo.fr
Sun Feb 20 07:47:13 EST 2005
I would like to use TeX to parse some files, e.g.
%%% example
\long\def\foo#1#2#3#4#5{%
\write1{#3}%
}
\openout1=dest.tex
\input source.tex
\immediate\closeout1
\bye
%%% end example
Unfortunately TeX expands all macros contained in #3, #5, #4 before
writing them.
How could I prevent expanding macros in "write" ?
thanks for any help
Eric
--------------------- 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 Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
More information about the MacOSX-TeX
mailing list