1
是否有一个功能,我可以通过提示我的标题和URL调用,它会自动将图像插入的组织模式缓冲区以这种格式功能插入图像插入组织模式
#+CAPTION: Foo of the caption
#+NAME: fig:SED-HR4049
[[/Users/peter/images/2013-11-22.jpg]]
/图像的路径?
是否有一个功能,我可以通过提示我的标题和URL调用,它会自动将图像插入的组织模式缓冲区以这种格式功能插入图像插入组织模式
#+CAPTION: Foo of the caption
#+NAME: fig:SED-HR4049
[[/Users/peter/images/2013-11-22.jpg]]
/图像的路径?
组织模式本身似乎没有内置的功能来执行此操作。
如果你想避免编写定制的elisp,您可以使用yasnippet和自定义组织模式"figure" snippet喜欢的东西
# -*- mode: snippet -*-
# name: figure
# key: fig
# --
#+CAPTION: ${1:caption}
#+LABEL: fig:${2:label}
[[${3:link}]]
或添加一些自定义的"Easy Templates"来org-structure-template-alist
,例如
(setq org-structure-template-alist
(quote ((...) ; Default templates ...
(...) ; ...
("C" "#+CAPTION ?") ; Template for caption.
("P" "[[?]]") ; Template for image link.
; Could also replace "?" with "%file"
; which prompts for a file name
; BUT inserts double quotes around it
; that you would have to remove afterwards
)))