【发布时间】:2016-09-26 15:38:50
【问题描述】:
我正在尝试为 pandoc 添加自定义乳胶模板
我知道 pandoc 模板进入 ~/.pandoc/templates
我通过输入 pandoc --v 确认 pandoc 目录位置 - 它说 pandoc 在 ~/.pandoc
但是当我这样做时cd ~/.pandoc:
-bash: cd: /Users/[Name]/.pandoc: No such file or directory
根据 pandoc 手册页,我可以使用 --data-dir=DIRECTORY 为 pandoc 数据文件设置不同的路径,但是当我尝试以这种方式构建文件时,例如
pandoc file.md -o file.pdf --data-dir=~/Library/texmf/tex/latex --template=mytemplate.latex
它会抛出错误
pandoc: Could not find data file templates/mytemplate.latex
我认为这意味着数据目录命令被忽略。
为什么我无法访问我的 pandoc 目录?
【问题讨论】:
-
如何创建预期的目录?
mkdir ~/.pandoc可能你使用的非标准 shell 无法理解~,尝试使用$HOME代替~。 -
~ 工作正常 - 例如 ~/.jupyter 带我到 jupyter
标签: pandoc