From: Bastien <bzg@gnu.org>
To: Olivier Berger <olivier.berger@it-sudparis.eu>
Cc: emacs-orgmode@gnu.org
Subject: Re: Exporting org-bibtex links as \cite{} refs in Latex
Date: Tue, 27 Mar 2012 22:41:24 +0200 [thread overview]
Message-ID: <877gy54w0b.fsf@gnu.org> (raw)
In-Reply-To: <87pqc3cjut.fsf@inf-8657.int-evry.fr> (Olivier Berger's message of "Fri, 23 Mar 2012 18:23:06 +0100")
Hi Olivier,
Olivier Berger <olivier.berger@it-sudparis.eu> writes:
> Something like :
> (defun org-bibtex-export (path desc format)
> (let* ((search (when (string-match "::#?\\(.+\\)\\'" path)
> (match-string 1 path)))
> (path (substring path 0 (match-beginning 0))))
> (cond ((eq format 'latex)
> (if (or (not desc)
> (equal 0 (search "bibtex:" desc)))
> (format "\\cite{%s}" search)
> (format "\\cite[%s]{%s}" desc search))))))
>
> I think this can work (see more details in [0]), and maybe that wouldn't
> be too hard to patch org-bibtex for something more generic ?
>
> Is this reasonable ?
This is *very* reasonable and I would welcome a patch for such an
export function.
Thanks!
--
Bastien
prev parent reply other threads:[~2012-03-27 23:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-23 17:23 Exporting org-bibtex links as \cite{} refs in Latex Olivier Berger
2012-03-27 20:41 ` Bastien [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877gy54w0b.fsf@gnu.org \
--to=bzg@gnu.org \
--cc=emacs-orgmode@gnu.org \
--cc=olivier.berger@it-sudparis.eu \
/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 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.