From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: Re: State of the art in citations Date: Sun, 27 Apr 2014 11:26:35 -0400 Message-ID: References: <87iopuomcq.fsf@gaillac.origami> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41216) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WeQye-0007er-19 for emacs-orgmode@gnu.org; Sun, 27 Apr 2014 11:26:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WeQyU-00009S-Mf for emacs-orgmode@gnu.org; Sun, 27 Apr 2014 11:26:47 -0400 Received: from mail-qg0-x234.google.com ([2607:f8b0:400d:c04::234]:42430) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WeQyU-00009M-IG for emacs-orgmode@gnu.org; Sun, 27 Apr 2014 11:26:38 -0400 Received: by mail-qg0-f52.google.com with SMTP id j5so5857072qga.25 for ; Sun, 27 Apr 2014 08:26:37 -0700 (PDT) In-reply-to: <87iopuomcq.fsf@gaillac.origami> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?utf-8?Q?Cl=C3=A9ment_B=2E?= Cc: emacs-orgmode On 2014-04-27 at 10:53, Clément B. wrote: > Hi Ken, > >> When I export this to LaTeX, it is not treated as a proper LaTeX >> citation. The text is just the "%A (%y)" part. Is there some way to >> export so that the ref:%l turns into a \cite{%l}? > > The "ref" is a custom link type, you can define those in org with > `org-add-link-type`, and they allow control over the export > behaviour. See the previous posts in this thread for an example. Ah! Got it. This is really nice. Thank you. I find the best way to support ODT is simply add something like this: ((eq format 'odt) (format "(%s)" desc)) This doesn't create a bibliography section, but that section is awkward to export to anyway. It requires the 3rd party Org hack that isn't officially supported, java, jabref, is awfully slow (~2 seconds/reference), etc. I now put the references inline as above, and then manually add the references by exporting to PDF and copying/paste that reference section. Not great, but less of a hack than ODT-supported references, and working with ODT/Word is a hack anyway. Still looking into "lastname (Year)" format... -k.