Statalist


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

st: AW: Re: texdoc


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: AW: Re: texdoc
Date   Fri, 3 Apr 2009 17:50:44 +0200

<> 

Weird issue. As soon as you add as little as a line break to the -display- directive, it magically comes to life...


*************
sysuse auto, clear

texdoc init plotweave, replace
        tex \documentclass{article}
        tex \usepackage{stata}
        tex \usepackage{graphicx}
        tex \begin{document}
forvalues i==0/1{
	texdoc stlog
	//first version does not do it
	//di  "`: label (foreign) `i''"
	di _n "`: label (foreign) `i''"
	texdoc stlog close
	}
        tex \end{document}
        texdoc close

 !texify  -c -b --run-viewer plotweave.tex
*************



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] Im Auftrag von Janet Hill
Gesendet: Freitag, 3. April 2009 16:58
An: [email protected]
Betreff: st: Re: texdoc

I have found texdoc very useful - many thanks Ben. 

I have a problem in trying to write a label to the output. When I run this do file:

texdoc init plotweave, replace
        tex \documentclass{article}
        tex \usepackage{stata}
        tex \usepackage{graphicx}
        tex \begin{document}
forvalues i==1/4{
	texdoc stlog
	di "`: label (site) `i''"
	tab goc if site==`i' & ogc==1
	texdoc stlog close
	spineplot ogc goc if site==`i' & ogc==1
	graph export plot`i'.eps,replace
	tex
	tex \includegraphics{plot`i'}
	}
        tex \end{document}
        texdoc close

The values of label (site) display on screen but do not appear in the Latex output (everything else is there).
Is there a way of getting them into the output (assuming that I have not made a syntax blunder). I am using Stata 10 and led to read the Latex

Thanks,
Janet




      

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


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