在链接参数中获取属性

时间:2018-11-29 09:32:22

标签: org-mode

(org-link-set-parameters
   "fig"
   :follow (lambda (path)(org-open-file-with-emacs
(format "../figurer/%s" path)))   :export (lambda (path desc backend)
 (cond
  ((eq backend 'html)
   (format (concat "<img src="">   " alt=\"%s\"/>")
     path (or desc path))))))

我需要具有一个图像副本,同时在不同目录级别具有.org和导出的.html文件。

但是,如果我现在要导出具有html属性和标题的图像,例如

#+CAPTION:A caption
#+HTML_ATTR: :width 150px
[[fig:figname.png][Alt text]]

最终以

<p width="150px">
<img src="../figurer/figname.png" alt="Alt text"/>
</p>

如何获取新的链接格式以包含html属性?感谢所有帮助!

(此问题先前在邮件列表http://lists.gnu.org/archive/html/emacs-orgmode/2018-08/msg00122.html中被询问)

0 个答案:

没有答案
相关问题