我尝试了以下语法:

[[folder/figure.svg]]

以及org-export-as-html
这显然不起作用-只是增加了一个参考。。。在html文件中。

最佳答案

我不得不测试几次,以澄清到底是什么问题出现。当我使用以下链接时,图像导出成功:

Current folder is ~/test/
[[./img/Bitmap.svg]]
[[./Bitmap.svg]]
[[~/test/Bitmap.svg]]

但是它失败了:
Current folder is ~/test/
[[img/Bitmap.svg]]
[[Bitmap.svg]]

我怀疑是Org必须找到图像在路径上的位置,./告诉它从当前位置查看,而~/可以被shell正确地展开以给出当前目录。
如果将./前缀添加到图像,则它们应正确导出。

关于html - 如何使用emacs org-mode在导出的html文件中包含svg图像?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/9572525/

10-12 00:10
查看更多