Thanks to Kit Baum, markstat 2.0 is now available from SSC. To update type ssc install markstat, replace.
The big news in this release is support for slide shows. You write your presentation using Stata and Markdown, and markstat leverages Pandoc to generate HTML slides using the S5 engine or PDF slides via LaTeX using Beamer. Below is a short script including metadata and two slides, an excerpt from a short presentation called deck.stmd that you can see in full in my website here.
The command markstat using deck, slides generates an HTML slide show using the S5 engine. Changing the option to slides(santiago) uses the Santiago theme. The graph slide is shown below and the complete show is here.
If you have a LaTeX installation, the command markstat using deck, beamer generates PDF slides via LaTeX with Beamer, and the option beamer(madrid) uses the Madrid theme shown here, just one of many themes available. The {.fragile} attribute is there to keep Beamer happy with verbatim content like Stata output.
The new nodo option lets you tinker with the narrative or change engines and/or themes without re-running the Stata analysis, an idea from Ben Jann’s nodo option of texdoc.
As usual, much more at my website, including help getting started, documentation, and many examples, including the complete deck.stmd script, and a two-column example showing slides with side-by-side code and graphs.
Feedback is always appreciated.
The big news in this release is support for slide shows. You write your presentation using Stata and Markdown, and markstat leverages Pandoc to generate HTML slides using the S5 engine or PDF slides via LaTeX using Beamer. Below is a short script including metadata and two slides, an excerpt from a short presentation called deck.stmd that you can see in full in my website here.
Code:
% Dynamic Presentations with Stata and Markdown % Germán Rodríguez % `s c(current_date)` # Stata Results {.fragile} Here's the proverbial fuel efficiency dataset: sysuse auto, clear gen gphm = 100/mpg quietly reg gphm weight _coef_table So a car that weights 1,000 pounds more than another will need on average `s %5.1f 1000*_b[weight]` more gallons to travel 100 miles. # A Stata Graph {.fragile} Using gallons per 100 miles leads to a more linear relationship twoway scatter gphm weight || lfit gphm weight /// , ytitle(Gallons per Mile) legend(off) quietly graph export short.png, width(500) replace ![Fuel Efficiency by Weight](short.png){width="60%"}
If you have a LaTeX installation, the command markstat using deck, beamer generates PDF slides via LaTeX with Beamer, and the option beamer(madrid) uses the Madrid theme shown here, just one of many themes available. The {.fragile} attribute is there to keep Beamer happy with verbatim content like Stata output.
The new nodo option lets you tinker with the narrative or change engines and/or themes without re-running the Stata analysis, an idea from Ben Jann’s nodo option of texdoc.
As usual, much more at my website, including help getting started, documentation, and many examples, including the complete deck.stmd script, and a two-column example showing slides with side-by-side code and graphs.
Feedback is always appreciated.
Comment