emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* 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 --]


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))
 ;enable auto-revert-mode to update reftex when bibtex file changes on disk
 (global-auto-revert-mode t)
 ;add a custom reftex cite format to insert links
  '((?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,


[-- 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 public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).