IDEAS home Printed from
   My bibliography  Save this article

Creating HTML or Markdown documents from within Stata using webdoc


  • Ben Jann

    () (University of Bern)


In this article, I discuss the use of webdoc for creating HTML or Markdown documents from within Stata. The webdoc command provides a way to embed HTML or Markdown code directly in a do-file and automate the inte- gration of results from Stata in the final document. The command can be used, for example, to create a webpage documenting your data analysis, including all Stata output and graphs. More generally, the command can be used to create and maintain a website that contains results computed by Stata.

Suggested Citation

  • Ben Jann, 2017. "Creating HTML or Markdown documents from within Stata using webdoc," Stata Journal, StataCorp LP, vol. 17(1), pages 3-38, March.
  • Handle: RePEc:tsj:stataj:v:17:y:2017:i:1:p:3-38
    Note: to access software from within Stata, net describe

    Download full text from publisher

    File URL:
    File Function: link to article purchase
    Download Restriction: no

    Other versions of this item:

    References listed on IDEAS

    1. Ben Jann, 2007. "Making regression tables simplified," Stata Journal, StataCorp LP, vol. 7(2), pages 227-244, June.
    2. Roger Newson, 2009. "LISTTAB: Stata module to list variables as rows of a TeX, HTML or word processor table," Statistical Software Components S457088, Boston College Department of Economics, revised 13 Oct 2015.
    3. Llorenç Quintó & Sergi Sanz & Elisa De Lazzari & John J. Aponte, 2012. "HTML output in Stata," Stata Journal, StataCorp LP, vol. 12(4), pages 702-717, December.
    4. P. Wilner Jeanty, 2010. "HLP2HTML: Stata module to translate a list of Stata help files to HTML," Statistical Software Components S457209, Boston College Department of Economics.
    Full references (including those not matched with items on IDEAS)

    More about this item


    webdoc; HTML; Markdown; weaving; Stata output; Stata log; reproducible research;

    JEL classification:

    • C87 - Mathematical and Quantitative Methods - - Data Collection and Data Estimation Methodology; Computer Programs - - - Econometric Software
    • C88 - Mathematical and Quantitative Methods - - Data Collection and Data Estimation Methodology; Computer Programs - - - Other Computer Software


    Access and download statistics


    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:tsj:stataj:v:17:y:2017:i:1:p:3-38. 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: (Christopher F. Baum) or (Lisa Gilmore). General contact details of provider: .

    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 CitEc recognized a reference but did not link an item in RePEc 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 RePEc Author Service 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.

    IDEAS is a RePEc service hosted by the Research Division of the Federal Reserve Bank of St. Louis . RePEc uses bibliographic data supplied by the respective publishers.