* cite with reftex for html and latex export
@ 2014-01-05 8:22 Joseph Vidal-Rosset
0 siblings, 0 replies; only message in thread
From: Joseph Vidal-Rosset @ 2014-01-05 8:22 UTC (permalink / raw)
To: emacs-orgmode list
[-- Attachment #1: Type: text/plain, Size: 1154 bytes --]
Hello,
I believe that this post is not without link with the thread "HTML Export
doesn't handle internal link with post.
In order to obtain via reftex a code which produces links to reference in
"plain" style, I have put in my init.el file the following code:
(defun org-mode-reftex-setup ()
(load-library "reftex")
(and (buffer-file-name) (file-exists-p (buffer-file-name))
(progn
;enable auto-revert-mode to update reftex when bibtex file changes on disk
(global-auto-revert-mode t)
(reftex-parse-all)
;add a custom reftex cite format to insert links
(reftex-set-cite-format
'((?b . "[cite:%l ]")
)
)
)
)
(define-key org-mode-map (kbd "C-c )") 'reftex-citation)
(define-key org-mode-map (kbd "C-c (") 'org-mode-reftex-search)
)
(add-hook 'org-mode-hook 'org-mode-reftex-setup)
The space between %l and ] allows me to write the page of reference.
The result is for example :
Quine [[3 <file:///home/joseph/Dropbox/org/minimal-paper.html#quine2010mot>],
p. 10]
Of course, it would be better to obtain: [3, p. 10], but I do not succed to
find the good solution.
If someone can help me...
Best wishes,
Jo.
[-- Attachment #2: Type: text/html, Size: 2195 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-01-05 8:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-05 8:22 cite with reftex for html and latex export Joseph Vidal-Rosset
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.