Germán Rodríguez
Stata Markdown Princeton University
  The markstat command lets you combine Stata code with Markdown annotations to produce dynamic documents in HTML, PDF or DOCX format.

Use Stata's code editor to write a script like fuel.stmd above center, and then run markstat using fuel to produce the web page on the left. Add the pdf option to produce the PDF document on the top right. Or use the docx option to produce the Word document on the bottom right, also discussed here. All from the same script! Requires Stata 14. A comparison with the new tools in Stata 15 is here. New: R code, see example here.

  The markstat command also lets you combine Stata code with Markdown annotations to produce dynamic presentations in HTML or PDF format.

Use Stata's code editor to write a script like deck.stmd on the left, run markstat using deck, slides(santiago) to produce an HTML presentation using S5 with the Santiago theme, as shown on the second slide on the top right. (The first slide shows the default Spiral theme.) Alternatively, change the option to beamer(madrid) to generate a PDF slide show using Beamer with the Madrid theme (or any of many available), as shown on the second slide on the bottom right. (The first slide shows the default Beamer theme.) More on slides here.

Getting Started Documentation Examples