-
Notifications
You must be signed in to change notification settings - Fork 31
pandoc
MarkDoc relies on Pandoc software for converting the Markdown
document to several formats. However, many of the functionalities of this software are not included
in MarkDoc, simply because there is no obvious use for them for the majority of the users. However,
since the software is needed, the pandoc
command was added to allow the users use Pandoc interactively
within Stata. The only advantage of this command is that it simplifies calling Pandoc and eliminates the
need of memorizing Pandoc path. See Pandoc Examples to get an idea of what you
can do with this command.
There are plenty of occasions that the pandoc
command can be very helpful. For example, imagine
you have used a user-written command to export a LaTeX or HTML table but you wish to include a Markdown
table in your document. You can use the pandoc
command to automatically convert the file
The syntax of the command is as follows:
pandoc command
executing Pandoc command
. pandoc filename -o filename
adding more Pandoc arguments
. pandoc -s -S filename -o filename
Users can permanently define the path to Pandoc software using the weave setup
command if they have not installed
Pandoc automatically, using the install
option.