<>
I don't see why one needs to do anything to avoid writing double backslashes:
. file open `junk' using junk.tex, write replace
. file write `junk' " Tamas \\" _n
. file write `junk' " Bartus \\" _n
. file close `junk'
. type junk.tex
Tamas \\
Bartus \\
. !cat junk.tex
Tamas \\
Bartus \\
Both Stata's type and the shell command cat show that the double backslashes made it into the file.
Kit
On Jan 30, 2010, at 2:33 AM, Tamas wrote:
> Date: Sat, 30 Jan 2010 00:30:22 +0100
> From: "Dr. Bartus" <[email protected]>
> Subject: Re: st: file write and latex table
>
> Thanks Roy, it works
Kit Baum | Boston College Economics & DIW Berlin | http://ideas.repec.org/e/pba1.html
An Introduction to Stata Programming | http://www.stata-press.com/books/isp.html
An Introduction to Modern Econometrics Using Stata | http://www.stata-press.com/books/imeus.html
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/