"cite" link type in contrib/org-bibtex-extras
This commit is contained in:
parent
5ea02285ba
commit
03c141a00e
|
@ -94,6 +94,14 @@ For example, to point to your `obe-bibtex-file' use the following.
|
|||
(outline-previous-visible-heading 1)
|
||||
t)))
|
||||
|
||||
(defun obe-citation-export (path desc format)
|
||||
(cond
|
||||
((eq format 'html) (format "<i>%s</i>" desc))
|
||||
((eq format 'latex) (format "\\cite{%s}" path))
|
||||
(t desc)))
|
||||
|
||||
(org-add-link-type "cite" 'obe-goto-citation 'obe-citation-export)
|
||||
|
||||
(defun obe-html-export-citations ()
|
||||
"Convert all \\cite{...} citations in the current file into HTML links."
|
||||
(save-excursion
|
||||
|
|
Loading…
Reference in New Issue