Where in the world is my pandoc directory?

夙愿已清 提交于 2019-12-04 05:37:11

You are indeed expected to create the ~/.pandoc directory if it doesn't exist already. For example for a default latex template:

mkdir -p ~/.pandoc/templates
pandoc -D latex > ~/.pandoc/templates/default.latex

The --template option looks for files relative to the current directory (pwd), or "if not found, pandoc will search for it in the templates subdirectory of the user data directory" (~/.pandoc/templates for --data-dir=~/.pandoc, which is the default).

Which is where your error comes from as there's probably no file /Library/texmf/tex/latex/templates/mytemplate.latex.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!