From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Citation syntax: a revised proposal Date: Sun, 01 Mar 2015 22:31:32 +0100 Message-ID: <87h9u4csln.fsf@gmx.us> References: <87k2zjnc0e.fsf@berkeley.edu> <87bnkvm8la.fsf@berkeley.edu> <87zj8co3se.fsf@berkeley.edu> <87ioezooi2.fsf@berkeley.edu> <87mw4bpaiu.fsf@nicolasgoaziou.fr> <8761aznpiq.fsf@berkeley.edu> <87twyjnh0r.fsf@nicolasgoaziou.fr> <87oaopx24e.fsf@berkeley.edu> <87k2zd4f3w.fsf@nicolasgoaziou.fr> <87egpkv8g9.fsf@berkeley.edu> <877fv6xfaq.fsf@gmail.com> <87twya2ak0.fsf@berkeley.edu> <87zj81aa97.fsf@nicolasgoaziou.fr> <87ioep2r6p.fsf@berkeley.edu> <87y4ngbgm7.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57722) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSBSj-0005ba-Px for emacs-orgmode@gnu.org; Sun, 01 Mar 2015 16:31:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YSBSe-0005E0-QE for emacs-orgmode@gnu.org; Sun, 01 Mar 2015 16:31:45 -0500 Received: from plane.gmane.org ([80.91.229.3]:57315) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSBSe-0005Dr-JX for emacs-orgmode@gnu.org; Sun, 01 Mar 2015 16:31:40 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YSBSc-0004zy-Ox for emacs-orgmode@gnu.org; Sun, 01 Mar 2015 22:31:38 +0100 Received: from tsn77-247-182-241.dyn.nltelcom.net ([77.247.182.241]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 01 Mar 2015 22:31:38 +0100 Received: from rasmus by tsn77-247-182-241.dyn.nltelcom.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 01 Mar 2015 22:31:38 +0100 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: emacs-orgmode@gnu.org Hi, Nicolas Goaziou writes: >> That would be wonderful! Will you publish a patch or, better, a branch >> somewhere, even if it's not ready for master? > > I created a new branch: "wip-cite". It introduces support for @key > [@key] [cite:pre @key post] and [(cite):pre @key post] constructs. Cool. I'll check it out. > However, opinion from advanced citation users on this ML has more weight > that mine. Instead of trying to figure out hypothetical crazy uses for > citations (e.g., using 50 different citation commands), I'd rather hear > from people with real citation requirements who are willing to use this > machinery. I use a similar setup and beside the above I use citeauthor a lot. Cite/(cite) covers something like 80% of my needs, but (later) I think something like org-cite-add-new-subtype should be there. With a nice API. Or we can add a couple of more subtypes. > At this point, we probably need to implement a BIBLIOGRAPHY keyword > (files) and BIBLIOGRAPHY_BACKEND (bibtex, zotero, jabref...) and provide > basic tools to handle citations in an Org document. Probably a CITATION_STYLE as well, e.g. "numeric", "author-year", etc. I'll try to look at biblatex support for ox-latex, which should be the easiest target, but ATM I'm a bit busy. For bibtex-outside-of-latex, reftex-cite.el is decent, but not great¹. Still, it may be easier to fix it up that to write our own bibtex parser. Or did John already solve this problem? Perhaps, org-bibtex offer good support for parsing data? Note, something like author-parsing is non-trivial, since bibtex both support firstname lastname and lastname, firstname. Further, for author-year style, you'd sometimes want to support no. of authors (see %a in reftex-format-citation). I have noticed tex4ht manages to do "proper" citations in odt. Perhaps we can study the resulting xml and how it adds a entries. Formatting is tricky... Perhaps only zotero is useful here. Latexml has some support for bibtex in html, but I haven't studied it properly. In any case for author-year html is "easy" up to the point of creating the bibliography (as with odt). Cheers, Rasmus Footnotes: ¹ E.g. if curly brackets are not removed from year it will include it, it only understands "lastname, firstname" for author (not "firstname lastname") etc. -- The Kids call him Billy the Saint