From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Hetzner Subject: Re: Citations, continued Date: Tue, 03 Feb 2015 22:30:00 -0800 Message-ID: <54d1bc7b.c57d440a.3c5d.2dca@mx.google.com> References: <87vbjmn6wy.fsf@berkeley.edu> <87sieokx8e.fsf@berkeley.edu> <54d04780.cb58460a.5243.2603@mx.google.com> <87h9v3li8t.fsf@berkeley.edu> <54d078ff.b044440a.06ec.3cf6@mx.google.com> <87d25rkmag.fsf@berkeley.edu> Reply-To: Erik Hetzner Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53767) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YItTm-0000Ee-2j for emacs-orgmode@gnu.org; Wed, 04 Feb 2015 01:30:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YItTi-0000VR-Lb for emacs-orgmode@gnu.org; Wed, 04 Feb 2015 01:30:25 -0500 Received: from mail-pa0-x22d.google.com ([2607:f8b0:400e:c03::22d]:36517) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YItTi-0000VF-Dy for emacs-orgmode@gnu.org; Wed, 04 Feb 2015 01:30:22 -0500 Received: by mail-pa0-f45.google.com with SMTP id et14so106491416pad.4 for ; Tue, 03 Feb 2015 22:30:21 -0800 (PST) In-Reply-To: <87d25rkmag.fsf@berkeley.edu> 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: Richard Lawrence Cc: emacs-orgmode@gnu.org Hi Richard, On Tue, 3 Feb 2015 at 08:11:19 PST, Richard Lawrence wrote: >=20 [=E2=80=A6] > Yes. I'll have to take a look at the Pandoc citeproc code and see how > easy it would be to add support for something like this. If there are > Org people that need citation types that select specific fields, I > imagine there are Pandoc people who do as well. The ideal would be if > citeproc would take care of proper formatting of all such citation > types, given just an ordered list of the fields that should appear. I > don't know if CSL supports this, though; do you? I=E2=80=99m not entirely sure what you mean. The authors of citeproc have c= ome up with a huge number of styles which seem to satisfy people=E2=80=99s need= s. What appears in the in-text citation is configurable, see: http://citationstyles.org/downloads/specification-csl101-20120903.html#ci= tation > The +title@doe syntax would work, but I don't personally think that's > any easier to read (or parse) than @doe:title, or @doe+title (which > actually is another option I had thought of, given the +/- syntax for > tag matching in Org). =20 The only advantage of it is that it doesn=E2=80=99t break existing cite key= s, which can contain :, and it is closer to existing syntax. But for the time being it=E2=80=99s something I wouldn=E2=80=99t worry about. > Thanks for taking the first step on this! I had a brief look at your > parser code when you posted it the other day. >=20 > I don't know if you are familiar with Org's parser, in org-element.el. > The important thing will be to have a parser for citations return a data > structure in the format used by org-element. In the language of > org-element, I think a citation is an object (as opposed to an element). > I am somewhat (but not super-) familiar with org-element and Elisp, so > if you want some help with this, let me know. I concentrated on getting the parser to recognize valid citations first. I have now finished this part (excepting any bugs, of course :) and will need to add code to generate a proper parse tree. Then it can be integrated into org-element.el. best, Erik -- Sent from my free software system .