Statalist


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

Re: st: AW: Re: texdoc


From   Janet Hill <[email protected]>
To   [email protected]
Subject   Re: st: AW: Re: texdoc
Date   Sat, 4 Apr 2009 08:55:46 +0000 (GMT)

Ben / Martin,
Many thanks for your help.
Janet


--- On Fri, 3/4/09, Ben Jann <[email protected]> wrote:

> From: Ben Jann <[email protected]>
> Subject: Re: st: AW: Re: texdoc
> To: [email protected]
> Date: Friday, 3 April, 2009, 9:57 PM
> -texdoc- chops the first line of the log files because
> usually it is a
> (unwanted) blank line (a line containing
> "{\smallskip}" to be
> precise). If -texdoc stlog- is used within a forvalues loop
> this line
> is missing, but -texdoc stlog- still chops the first line.
> 
> Martin provided a workaround. Alternatively, include an
> additional
> -di- after -texdoc stlog-, i.e.:
> 
> forvalues i==0/1{
>     texdoc stlog
>     di
>     di  "`: label (foreign) `i''"
>     ...
> }
> 
> I now changed -texdoc stlog- so that in only chops the
> first line if
> it is equal to "{\smallskip}". An update
> should be available from the
> SSC Archive soon.
> 
> ben
> 
> On Fri, Apr 3, 2009 at 5:50 PM, Martin Weiss
> <[email protected]> wrote:
> >
> > <>
> >
> > 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