私の MacBook (OSX Mountain Lion) では、この Pandoc コマンドを使用して Markdown を PDF に変換していました。
$ markdown2pdf -N -o pandoc_output.pdf --xetex --toc --template=mytemplate.tex myfile.md
しかしmarkdown2pdf
、もはや機能せず、--xetex
オプション inmarkdown2pdf -N -o ../../Desktop/pandoc_output.pdf --xetex --toc --template=mytemplate-headers-garamond_date.tex
は非推奨です。
私がこれを行う場合:
$ pandoc -N -o Desktop/pandoc_output.pdf --xetex --toc --template=mytemplate.tex myfile.md
私はこれを得る:
pandoc: unrecognized option `--xetex'
しかし、私が取り出し--xetex
てこれを行うと:
$ pandoc -N -o Desktop/pandoc_output.pdf --toc --template=mytemplate.tex myfile.md
それから私はこれを得る:
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}
解決策は何ですか?