我尝试过以下语法:
[[folder/figure.svg]]
Run Code Online (Sandbox Code Playgroud)
随着org-export-as-html。
这显然不起作用 - 只是在 html 文件中添加引用...。
我必须对此进行几次测试才能弄清楚问题到底是什么。当我使用以下链接时,图像导出成功:
Current folder is ~/test/
[[./img/Bitmap.svg]]
[[./Bitmap.svg]]
[[~/test/Bitmap.svg]]
Run Code Online (Sandbox Code Playgroud)
但是它失败了:
Current folder is ~/test/
[[img/Bitmap.svg]]
[[Bitmap.svg]]
Run Code Online (Sandbox Code Playgroud)
我怀疑 Org 必须找到图像在路径上的位置,告诉./它从当前位置查找,同时~/可以由 shell 正确扩展以给出当前目录。
如果您./为图像添加前缀,它们应该可以正确导出。