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 10:41:16 -0400 Message-ID: References: <87ppk4ni6i.fsf@gaillac.origami> <87k3aaoo5d.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]:37444) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WeQGm-0003LE-UC for emacs-orgmode@gnu.org; Sun, 27 Apr 2014 10:41:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WeQGd-0004jx-RQ for emacs-orgmode@gnu.org; Sun, 27 Apr 2014 10:41:28 -0400 Received: from mail-qa0-x22f.google.com ([2607:f8b0:400d:c00::22f]:47449) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WeQGd-0004jr-MM for emacs-orgmode@gnu.org; Sun, 27 Apr 2014 10:41:19 -0400 Received: by mail-qa0-f47.google.com with SMTP id j7so1151181qaq.20 for ; Sun, 27 Apr 2014 07:41:18 -0700 (PDT) In-reply-to: <87k3aaoo5d.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: julian@hafro.is, Leonard Randall , emacs-orgmode Hi Clément and Others, On 2014-04-27 at 10:14, Clément B. wrote: > (setq reftex-cite-format > '((?\C-m . "\\cite[]{%l}") > (?b . "[[ref:%l][%A (%y)]]"))) I've been using reftex in Org -> LaTeX for a while and have my Org text sprinkled with \cite{foo:yyyy}. I just saw the customized reftex-cite-format from Clément (above). It looks much nicer in the text, but raises two questions: 1) Can the link just use lastname? It looks like %A is the only way to access author names, and does full names, so perhaps not without writing some custom function? And more importantly, 2) 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}? Thanks, -k.