Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Re: file write and latex table


From   Kit Baum <[email protected]>
To   [email protected]
Subject   st: Re: file write and latex table
Date   Sat, 30 Jan 2010 08:01:10 -0500

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



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index