On my MacBook (OSX Mountain Lion), I used this Pandoc command to convert Markdown to PDF:
$ markdown2pdf -N -o pandoc_output.pdf --xetex --toc --template=mytemplate.tex myfile.md
But markdown2pdf no longer works, and the --xetex option in markdown2pdf -N -o ../../Desktop/pandoc_output.pdf --xetex --toc --template=mytemplate-headers-garamond_date.tex deprecated.
If I do this:
$ pandoc -N -o Desktop/pandoc_output.pdf --xetex --toc --template=mytemplate.tex myfile.md
I get this:
pandoc: unrecognized option `--xetex'
But if I choose --xetex and do this:
$ pandoc -N -o Desktop/pandoc_output.pdf --toc --template=mytemplate.tex myfile.md
then I get the following:
pandoc: Error producing PDF from TeX source. ! Package hyperref Error: Wrong driver option `xetex', (hyperref) because XeTeX is not detected. See the hyperref package documentation for explanation. Type H <return> for immediate help. ... l.3925 \ProcessKeyvalOptions{Hyp}
What's the solution?
markdown latex pandoc xetex
incandescentman
source share