IDEAS home Printed from
MyIDEAS: Log in (now much improved!) to save this paper

Creating LaTeX documents from within Stata using texdoc

Listed author(s):
  • Ben Jann


Registered author(s):

This paper discusses the use of -texdoc- for creating LaTeX documents from within Stata. Specifically, -texdoc- provides a way to embed LaTeX code directly in a do-file and to automate the integration of results from Stata in the final document. The command can be used, for example, to assemble automatic reports, write a Stata Journal article or a Stata Press book, prepare slides for classes, or put together solutions for homework assignments. An earlier version of this paper has been published in The Stata Journal 16(2): 245-263 (see:

If you experience problems downloading a file, check if you have the proper application to view it first. In case of further problems read the IDEAS help page. Note that these files are not on the IDEAS site. Please be patient as the files may be large.

File URL:
File Function: Revised version, 2016
Download Restriction: no

File URL:
File Function: Published version, 2016
Download Restriction: no

Paper provided by University of Bern, Department of Social Sciences in its series University of Bern Social Sciences Working Papers with number 14.

in new window

Length: 26 pages
Date of creation: 02 Sep 2015
Date of revision: 27 Nov 2016
Handle: RePEc:bss:wpaper:14
Contact details of provider: Web page:

References listed on IDEAS
Please report citation or reference errors to , or , if you are the registered author of the cited work, log in to your RePEc Author Service profile, click on "citations" and make appropriate adjustments.:

in new window

  1. Ben Jann, 2007. "Making regression tables simplified," Stata Journal, StataCorp LP, vol. 7(2), pages 227-244, June.
Full references (including those not matched with items on IDEAS)

This item is not listed on Wikipedia, on a reading list or among the top items on IDEAS.

When requesting a correction, please mention this item's handle: RePEc:bss:wpaper:14. See general information about how to correct material in RePEc.

For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: (Ben Jann)

If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

If references are entirely missing, you can add them using this form.

If the full references list an item that is present in RePEc, but the system did not link to it, you can help with this form.

If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your profile, as there may be some citations waiting for confirmation.

Please note that corrections may take a couple of weeks to filter through the various RePEc services.

This information is provided to you by IDEAS at the Research Division of the Federal Reserve Bank of St. Louis using RePEc data.