Creating a PDF
Earlier versions of pandoc came with a program, markdown2pdf
, that used pandoc and pdflatex to produce a PDF. This is no longer needed, since pandoc
can now produce pdf
output itself. To produce a PDF, simply specify an output file with a .pdf
extension. Pandoc will create a latex file and use pdflatex (or another engine, see --latex-engine
) to convert it to PDF:
pandoc test.txt -o test.pdf
Production of a PDF requires that a LaTeX engine be installed (see --latex-engine
, below), and assumes that the following LaTeX packages are available: amssymb
, amsmath
, ifxetex
, ifluatex
, listings
(if the --listings
option is used), fancyvrb
, enumerate
, ctable
, url
, graphicx
, hyperref
, ulem
, babel
(if the lang
variable is set), fontspec
(if xelatex
or lualatex
is used as the LaTeX engine), xltxtra
and xunicode
(if xelatex
is used).