[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Exporting org-bibtex links as \cite{} refs in Latex
From: |
Bastien |
Subject: |
Re: [O] Exporting org-bibtex links as \cite{} refs in Latex |
Date: |
Tue, 27 Mar 2012 22:41:24 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) |
Hi Olivier,
Olivier Berger <address@hidden> 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