Pandoc --resource-path 未找到资产

Thi*_*ers 6 pandoc

我正在使用 pandoc/latex docker 容器,但遇到了一些问题--resource-path。我的项目正在使用引用图像的乳胶模板,但我无法让乳胶找到图像。

\n

我的文件树如下所示:

\n
/app/tmp/\n\xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 42\n\xe2\x94\x82\xc2\xa0\xc2\xa0 \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 galley.md\n\xe2\x94\x82\xc2\xa0\xc2\xa0 \xe2\x94\x94\xe2\x94\x80\xe2\x94\x80 img\n\xe2\x94\x82\xc2\xa0\xc2\xa0     \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 1.jpg\n\xe2\x94\x82\xc2\xa0\xc2\xa0     \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 5.jpg\n\xe2\x94\x82\xc2\xa0\xc2\xa0     \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 7.jpg\n\xe2\x94\x82\xc2\xa0\xc2\xa0     \xe2\x94\x94\xe2\x94\x80\xe2\x94\x80 9.jpg\n
Run Code Online (Sandbox Code Playgroud)\n

我有这样的用户数据目录:

\n
/home/worker/.pandoc\n\xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 assets\n\xe2\x94\x82\xc2\xa0\xc2\xa0 \xe2\x94\x94\xe2\x94\x80\xe2\x94\x80 logo.png\n\xe2\x94\x94\xe2\x94\x80\xe2\x94\x80 templates\n    \xe2\x94\x94\xe2\x94\x80\xe2\x94\x80 sow.latex \n
Run Code Online (Sandbox Code Playgroud)\n

我正在使用的命令看起来像

\n
pandoc --from markdown --to latex /app/tmp/42/galley.md --output=/app/tmp/42/2/out.pdf --template sow.latex --resource-path=.:/home/worker/.pandoc/assets\n
Run Code Online (Sandbox Code Playgroud)\n

如前所述,乳胶模板确实引用了logo.png

\n
\\includegraphics[width=0.75\\textwidth]{logo.png}\\par\\vspace{1cm}\n
Run Code Online (Sandbox Code Playgroud)\n

每当我运行 pandoc 时,我都会收到以下错误:

\n
! Package pdftex.def Error: File `logo.png' not found: using draft setting.\n
Run Code Online (Sandbox Code Playgroud)\n

如果我注释掉对的引用,logo.png那么一切都会正常工作,包括 中引用的其他图像galley.md。同样,如果我复制logo.png到目录中,galley.md一切正常;作为一种解决方法,这很好,但感觉很铿锵,所以我宁愿弄清楚如何logo.png从它所在的位置进行引用assets

\n

reference-path关于如何玩,我有什么遗漏的吗template

\n