Reftex引用作为orgmode中的脚注

时间:2015-03-17 16:00:52

标签: emacs elisp

我希望有一个函数,使用reftex插入格式为“First_Author(1998)”的引文,添加一个组织脚注,并用格式“All_Authors”,title“,journal(1998)”填充描述。我目前的工作尝试是:

(defun cite-footnote()
(interactive)
(let (ENTRY)
  (setq ENTRY (reftex-citation t))
  (message (reftex-format-citation ENTRY "%A (%y)"))
  (org-footnote-new)
  (insert (reftex-format-citation ENTRY "%a, “%t”, %j, (%y)"))
  ))

问题是reftex-citation的输出不是reftex-format-citation的第一个参数。什么是正确的命令组合?

1 个答案:

答案 0 :(得分:1)

我已经攻击了reftex,因此它可以将引用插入到asciidoc或markdown中,这与你想要的类似。

https://github.com/phillord/phil-emacs-packages/blob/master/greycite.el

这真的是一个黑客 - 我填补了我的需求,我从来没有做好这件事,但它应该给你这个想法。

这里似乎有另一种解决方案。

http://blog.modelworks.ch/?p=379

相关问题