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 09:27:13 -0600 Message-ID: <87lh9bh7se.fsf@fastmail.fm> References: <87wpt1yj5k.fsf@berkeley.edu> <87d1uqyiva.fsf@berkeley.edu> <8737vkidgl.fsf@fastmail.fm> <87mvtsw3sp.fsf@berkeley.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38078) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4Vmx-00043E-Bx for emacs-orgmode@gnu.org; Thu, 03 Dec 2015 10:27:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a4Vmt-0000hY-5A for emacs-orgmode@gnu.org; Thu, 03 Dec 2015 10:27:19 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:55667) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4Vms-0000gp-Uv for emacs-orgmode@gnu.org; Thu, 03 Dec 2015 10:27:15 -0500 In-Reply-To: <87mvtsw3sp.fsf@berkeley.edu> (Richard Lawrence's message of "Wed, 02 Dec 2015 20:32:06 -0800") 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,=20 Richard Lawrence writes: > Hi Matt and all, > > Matt Lundin writes: > >> Given these complexities, it seems that if we went the zotero route we >> could end up with a fairly large installation chain (firefox, zotero, >> zotxt, plugin for zotero). And this would require installing items from >> multiple, heterogeneous sources. > > Well, I would guess that many people who are interested in this already > have Firefox installed, and after that, you just need to install two > Firefox plugins: Zotero and zotxt. Open a couple of links, give your > permission, and that's it. > > If you're skeptical, I encourage you to try it: > > https://www.zotero.org/download/ > https://addons.mozilla.org/en-US/firefox/addon/zotxt/ > > It's pretty easy. And removing the plugins via about:addons is just as > easy. Thanks for the links. I'll try them out. But for bibtex users, wouldn't there presumably have to be another zotero plugin that would allow for live, automated importing of bibtex into zotero? (If anyone knows whether such a plugin exists, please do let me know.) > We have discussed this before, and in fact, I already started work along > this route: see https://github.com/wyleyr/org-citeproc > > I stopped because people objected that distributing a Haskell program is > too difficult. Even if you can install pandoc-citeproc via your > system's package manager, to build org-citeproc against it you need a > complete Haskell build environment, which is (somewhat notoriously) > difficult to work with, and too much to expect for the average person > who just wants citation support in their Org documents. Nor has anyone > volunteered to take care of building and distributing a binary for every > platform we'd want to support (including, I assume, Windows and OS > X...). Thanks for your work on this. I would agree that compile a haskell program makes this a nonstarter for many users. A thought experiment... Do we need a fork of pandoc-citeproc? Or could we rather write an emacs-lisp wrapper that would feed citation data and a bibliography to pandoc and receive a string containing citations formatted in org syntax (one of pandoc's outputs). This could be done via an export filter, with all the necessary manipulation being done on the emacs/org side of things. Pandoc is available in several linux distributions (in addition to the deb file released by the project) and installers are available OS Windows, so most people wouldn't need to compile it. > The nice thing about Firefox (and these days, Emacs) is that it's a sort > of cross-platform package manager. If the citation processing > dependencies are just Firefox plugins, they'll be much more accessible > to a much wider group of people without a lot of work on our part. So, > that's why I'd prefer depending on Zotero to depending on something like > org-citeproc or citeproc-node. Javascript interpreters/engines are widely available for all platforms if we create a wrapper script around citeproc-js. Node itself is also easily available for most platforms. But we wouldn't need to set it up as a node server =C3=A0 la citeproc-node. Thanks so much for all your work on this. I'm happy to help out wherever I can. Best, Matt