From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: Citation processing via Zotero + zotxt Date: Thu, 03 Dec 2015 20:06:18 -0600 Message-ID: <878u5bdl2d.fsf@fastmail.fm> References: <87wpt1yj5k.fsf@berkeley.edu> <87d1uqyiva.fsf@berkeley.edu> <8737vkidgl.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55770) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4flQ-000116-Aq for emacs-orgmode@gnu.org; Thu, 03 Dec 2015 21:06:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a4flM-00041t-Vy for emacs-orgmode@gnu.org; Thu, 03 Dec 2015 21:06:24 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:41050) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4flM-00041f-Pn for emacs-orgmode@gnu.org; Thu, 03 Dec 2015 21:06:20 -0500 In-Reply-To: (John Kitchin's message of "Thu, 03 Dec 2015 18:31:14 -0500") 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: John Kitchin Cc: Martin =?utf-8?B?WXJqw7Zsw6Q=?= , emacs-orgmode@gnu.org John Kitchin writes: > > I am not yet convinced a citation processor will get us where we want > because of the complexity of the external dependencies, and the > potential/probable need for us to define new CSL files for different > backends, or at a minimum for org-formatted citations and > bibliographies. Hacking bst files is no fun, and it doesn't look like > CSL files are much better! Plus you have to find them and install them > somehow. As I understand it, we would not need to hack the CSL files to get org markup. With a good processor, such as citeproc-js, it should be trivial to modify the output format.[fn:1] What CSL implementations do offer is the complexity to handle all the nuances of multiple citation styles, languages, etc. (e.g., something like Chicago Manual of Style footnotes). My suspicion is that it would take years to code something in emacs-lisp that offers all of the functionality of CSL processors. > http://kitchingroup.cheme.cmu.edu/blog/2015/12/03/Exporting-numbered-citations-in-html-with-unsorted-numbered-bibliography/ > > I am pointing this out because I think the approach I used could allow > for plugins for different database backends, different ways to get the > replacements, etc... you could substitute org-ref links for the > citation syntax at some point with no real loss of generality. org-ref > could insert the new syntax as soon as it is available in a main org > branch. Some code will have to be rewritten to get the key under > point, but that probably won't be too hard. Thanks for sharing this. I use something like this myself for *basic* Chicago Manual of Style formatting when I can't rely on biblatex-chicago. Might I ask: What is org-ref syntax as opposed to citation syntax? > Then other more advanced solutions could come along that would likely > be superior in output quality if they use real citation processors, > but only if there are CSLs for different backends (if I understand how > they work). I don't think modifying CSL styles would be necessary. A huge number already exist.[fn:2] I think all we would need to do is to convert the final CSL output to org syntax, which pandoc can already do and which citeproc-js could do with minor additions. Best, Matt Footnotes: [fn:1] See https://bitbucket.org/fbennett/citeproc-js/src/tip/src/formats.js?fileviewer=file-view-default [fn:2] https://github.com/citation-style-language/styles