我想在Pandoc中使用自定義乳膠模板。Pandoc用戶數據目錄
我跟着instructions(--data-dir),但我找不到我的mac上的用戶數據目錄,如here所述。
因此,我創建了.pandoc /模板文件夾手動,把我裏面~/.pandoc/templates
模板,運行pandoc input.md --template=mytemplate.latex -o output.pdf
,這就是我得到
pandoc: Could not find data file /usr/local/Cellar/pandoc/1.18/share/x86_64-osx-ghc-8.0.1/pandoc-1.18/data/templates/mytemplate.latex
,我可以輕鬆地將我的模板文件夾內,但我相當確信這不是正確的方法,只是因爲只要我升級到v.1.19就會停止工作。
是的,根據[手冊](http://pandoc.org/MANUAL.html#general-writer-options):「如果找不到模板,pandoc將在templates子目錄中搜索它的用戶數據目錄(請參閱--data-dir)。「 – scoa