From: Joseph Vidal-Rosset <joseph.vidal.rosset@gmail.com>
To: Matt Price <moptop99@gmail.com>, Rasmus <rasmus@gmx.us>,
Org Mode <emacs-orgmode@gnu.org>
Cc: eschulte@cs.unm.edu
Subject: Re: current status of citation syntax discussion
Date: Tue, 18 Aug 2015 16:38:13 +0200 [thread overview]
Message-ID: <CAD-VTcHb7U4_iEoJfL4H65CeVJTkctBd5A+8T0=rJL26Tv+CEA@mail.gmail.com> (raw)
In-Reply-To: <CAD-VTcEYOY5gNZRJo99qdzbfotChXrhiFsXeOqxy9GVbZ2mzeg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1356 bytes --]
2015-08-18 9:53 GMT+02:00 Joseph Vidal-Rosset <joseph.vidal.rosset@gmail.com
>:
> Thanks to Eric's example (here :
> https://lists.gnu.org/archive/html/emacs-orgmode/2014-01/msg01262.html )
> I have succeeded to use ox-bibtex.el. \cite{} in the org file works both
> for html and latex.
>
> Nevertheless, I wonder how to get for org-file the org citation syntax
> [[cite: ]] instead of \cite{} when I choose a reference from my
> references.bib file . Is it possible to change this point in order to get
> the same org file than in Eric's example ?
I just finded a solution here :
https://tincman.wordpress.com/2011/01/04/research-paper-management-with-emacs-org-mode-and-reftex/
and here is the adaptation of the code in my init.el :
(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
'((?c . "[[cite:%l]]")))))
(define-key org-mode-map (kbd "C-c ]") 'reftex-citation))
(add-hook 'org-mode-hook 'org-mode-reftex-setup)
with # \bibliography{reforg} at the beginning of my .org file, referring to
my .bib file, it works.
Best wishes,
Jo.
[-- Attachment #2: Type: text/html, Size: 2227 bytes --]
next prev parent reply other threads:[~2015-08-18 14:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-15 19:08 current status of citation syntax discussion Matt Price
2015-06-16 19:51 ` Rasmus
[not found] ` <CAN_Dec9TP8BR+ZhF+4GQiDuT+KcotSeiybQ+Bx8Y36=JeaqQNg@mail.gmail.com>
[not found] ` <CAN_Dec_w89fLBLraXLBLju3pxsJtDsBwJvp63mxFi1=jxAawaw@mail.gmail.com>
2015-06-16 20:18 ` Matt Price
2015-06-16 20:29 ` Rasmus
2015-06-16 20:43 ` Nicolas Goaziou
2015-08-18 7:53 ` Joseph Vidal-Rosset
2015-08-18 14:38 ` Joseph Vidal-Rosset [this message]
2015-06-18 15:26 ` Richard Lawrence
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAD-VTcHb7U4_iEoJfL4H65CeVJTkctBd5A+8T0=rJL26Tv+CEA@mail.gmail.com' \
--to=joseph.vidal.rosset@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=eschulte@cs.unm.edu \
--cc=moptop99@gmail.com \
--cc=rasmus@gmx.us \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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).