From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: pandoc-style citations Date: Wed, 27 Apr 2016 15:41:39 -0400 Message-ID: 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]:45906) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avVLE-0008Nu-V7 for emacs-orgmode@gnu.org; Wed, 27 Apr 2016 15:41:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1avVLA-0003cO-RP for emacs-orgmode@gnu.org; Wed, 27 Apr 2016 15:41:44 -0400 Received: from mail-qk0-x232.google.com ([2607:f8b0:400d:c09::232]:33134) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avVLA-0003cH-MZ for emacs-orgmode@gnu.org; Wed, 27 Apr 2016 15:41:40 -0400 Received: by mail-qk0-x232.google.com with SMTP id n63so23259585qkf.0 for ; Wed, 27 Apr 2016 12:41:40 -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 Cc: emacs-orgmode@gnu.org you might also checkout helm-bibtex. A recent note indicated "Support for pre- and postnotes for pandoc-citeproc citations." I haven't tried it, so I am not sure how it works for org-mode. org-ref supports [[cite:somekey][pre-text::post-text]] syntax, without folding the link on itself so you can see it. I think your example would look like: blah blah blah [[cite:ref1][::, p.23]], also cite:ref2, for a contrary view see [[cite:ref3][:: pp148-152]] this exports out of the org-ref box to: blah blah blah \cite[][, p.23]{ref1}, also \cite{ref2}, for a contrary view see \cite[][ pp148-152]{ref3}. I don't use this style of citations, so I don't know if it is right. Alex Fenton writes: > Hello, > > 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). > > 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. > > thanks > alex -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu