Skip to content

Installation

E. F. Haghish edited this page Sep 29, 2018 · 11 revisions

MarkDoc receives constant updates on GitHub and users are recommended to follow the updates from GitHub. To install MarkDoc from GitHub on Stata, type:

net install markdoc, replace from("https://raw.githubusercontent.com/haghish/markdoc/master/")

Required Stata packages

MarkDoc requires two other packages for highlighting the syntax of Stata commands in the documents and providing additional functionalities to the package for creating dynamic tables and writing dynamic text. These packages can be installed from GitHub:

net install weaver, replace from("https://raw.githubusercontent.com/haghish/weaver/master/")
net install statax, replace from("https://raw.githubusercontent.com/haghish/statax/master/")

or alternatively, from SSC:

ssc install weaver
ssc install statax

Required third-party software

MarkDoc requires 2 third-party software which are Pandoc and wkhtmltopdf. These software can be installed automatically by using the install option in both markdoc and rundoc commands. However, the users can also download and install these software manually and define the paths to executable software in MarkDoc.

The users can also permanently define the paths to these software using the weave setup command which memorizes the paths to the executable Pandoc and wkhtmltopdf permanently, even if MarkDoc package gets updated. The path information is stored in an ado file named weaversetup.ado, which can be found in /PLUS/w/weaversetup.ado.