From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Lawrence Subject: Re: pandoc-style citations Date: Wed, 27 Apr 2016 07:09:19 -0700 Message-ID: <87r3dr3zzk.fsf@aquinas.i-did-not-set--mail-host-address--so-tickle-me> References: <572045B8.4070904@pressure.to> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58774) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avQ8h-0004xC-9Q for emacs-orgmode@gnu.org; Wed, 27 Apr 2016 10:08:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1avQ8b-0007Df-7d for emacs-orgmode@gnu.org; Wed, 27 Apr 2016 10:08:27 -0400 Received: from mail-pf0-x232.google.com ([2607:f8b0:400e:c00::232]:34734) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avQ8a-0007DF-VZ for emacs-orgmode@gnu.org; Wed, 27 Apr 2016 10:08:21 -0400 Received: by mail-pf0-x232.google.com with SMTP id y69so20715328pfb.1 for ; Wed, 27 Apr 2016 07:08:19 -0700 (PDT) In-Reply-To: <572045B8.4070904@pressure.to> 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" To: Alex Fenton , emacs-orgmode@gnu.org Hi Alex, Alex Fenton writes: > I see that there were several extensive and fruitful discussions on this > list last year on citation syntax. There seemed to be a reasonable > degree of consensus that pandoc-style citation syntax was at the least a > good model. > > I'd like to know if there are any implementations out there of elisp to > parse pandoc citation syntax and turn it into latex \cites. My question > is not so much "when/if this will be in org mode" but rather whether > there's something I can drop in now (likely as a link type). As far as Elisp implementations go, I know of no specific parser for Pandoc citation syntax. But there is support for a Pandoc-like syntax (discussed in the threads you read) in the wip-cite branch of Org's repository. This provides support for multi-cite citations in Org syntax, but it isn't hooked up to the export framework at all. Export is where efforts stalled last year. Aaron Ecay, Vaidheeswaran C, and I all worked on different proof-of-concept implementations to hook up the citation parser to a citation processor and the various exporters. This is a non-trivial problem, and it seems that not many people have a lot of time to work on it (including me), so if you want to help, that would be great! Aaron's work is in the Org repository (see the wip-cite-awe branch). Vaidheeswaran's is elsewhere; I don't know where exactly, but you can search the list for a link. My own is here, in the wip-cite-rebase branch: https://github.com/wyleyr/org-mode/. There is also Pandoc itself, which can read (some) Org syntax. Depending on what your document looks like, you might have good luck just using Pandoc to convert it to LaTeX. > I have a lot of longish citations with multiple references each with > their own pre- and post- ("'blah blah blah @ref1, p.23, also @ref2, for > a contrary view see @ref3 pp148-152") that end up as \cites. However my > home-brew link solution, stuffing the multiple pre- and posts- with > separator into the link description is unwieldy - difficult to write, > hard to read and easy to get wrong or breaking output. You may also want to look at John Kitchin's org-ref, which I believe works similar to your homebrew link solution, but has a lot of features and may provide a better interface for what you're trying to do: https://github.com/jkitchin/org-ref Best, Richard