Notice: On March 31, it was **announced** that Statalist is moving from an email list to a **forum**. The old list will shut down on April 23, and its replacement, **statalist.org** is already up and running.

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

From |
Michael Norman Mitchell <Michael.Norman.Mitchell@gmail.com> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: texdoc |

Date |
Mon, 17 May 2010 11:16:19 -0700 |

Dear David

Many thanks, Michael N. Mitchell See the Stata tidbit of the week at... http://www.MichaelNormanMitchell.com On 2010-05-16 9.14 PM, Airey, David C wrote:

. I just wanted to remind users about Ben Jann's program "texdoc" as one solution for combining Stata results and graphs with documentation, in a "weaving" fashion, similar to R and Sweave. It works well with relatively simple documents one might produce for a course. In Ben's program, you basically type in your .do file: texdoc init myfile, replace and then you enclose blocks of LaTeX in your .do file between /*tex ...stuff like LaTeX preamble, graphics, body text, etc. tex*/ and enclose blocks of Stata commands with texdoc stlog ... texdoc stlog close and end with texdoc close With that structure in your .do file, you type, texdoc myfile.do, replace to create all the .tex files and include files. Then you LaTeX the .tex file to produce a very pretty PDF. You also have to download sjlatex and if on a mac, install sjlatex files here: ~/YourUserFolder/Library/texmf/tex/latex/sjlatex/ and also if you are on a mac, a very easy MacTeX installation is available. -Dave * * 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/

**Follow-Ups**:**Re: st: texdoc***From:*Phil Schumm <pschumm@uchicago.edu>

**RE: st: texdoc***From:*"Nick Cox" <n.j.cox@durham.ac.uk>

**References**:**st: texdoc***From:*"Airey, David C" <david.airey@Vanderbilt.Edu>

- Prev by Date:
**RE: st: statistical significance of cut points in ordered logit** - Next by Date:
**RE: st: texdoc** - Previous by thread:
**st: RE: texdoc** - Next by thread:
**RE: st: texdoc** - Index(es):