From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Citation processing via Zotero + zotxt Date: Thu, 03 Dec 2015 23:05:53 +0100 Message-ID: <874mfzrxvi.fsf@gmx.us> References: <87wpt1yj5k.fsf@berkeley.edu> <87d1uqyiva.fsf@berkeley.edu> <8737vkidgl.fsf@fastmail.fm> <87mvtsw3sp.fsf@berkeley.edu> <87lh9bh7se.fsf@fastmail.fm> <87k2ovwh4w.fsf@berkeley.edu> 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]:50148) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4c0t-0000yv-W6 for emacs-orgmode@gnu.org; Thu, 03 Dec 2015 17:06:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a4c0o-0008EV-Oa for emacs-orgmode@gnu.org; Thu, 03 Dec 2015 17:06:07 -0500 Received: from plane.gmane.org ([80.91.229.3]:54326) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4c0o-0008DW-Id for emacs-orgmode@gnu.org; Thu, 03 Dec 2015 17:06:02 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1a4c0l-0000ns-5f for emacs-orgmode@gnu.org; Thu, 03 Dec 2015 23:05:59 +0100 Received: from tsn109-201-154-156.dyn.nltelcom.net ([109.201.154.156]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 03 Dec 2015 23:05:59 +0100 Received: from rasmus by tsn109-201-154-156.dyn.nltelcom.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 03 Dec 2015 23:05:59 +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, Thomas S. Dye writes: > At the risk of introducing noise, I've long wondered if tex4ht might > help with citation processing in Org mode? IIUC, tex4ht uses the > device-independent dvi file produced by TeX to make html, odt, and other > formats. With an Org mode that relied on tex4ht, users would use BibTeX > bibliographies, and Org mode documents with citations would be processed > by LaTeX and a tex4ht script that would yield the correctly formatted > in-text citations and bibliography in the desired output format. Org mode > would then parse this output and plug in the pieces at the right places. tex4ht is beautiful piece of software. For odt it creates perfect citations and reference list. I was thinking about utilizing biber for this purpose at some point. I forgot why I stopped looking at it... It might be possible and if it is, it would be very nice, as biber and biblatex are arguably the better tools. > I'm in way over my head here and won't be surprised to learn that this > idea is a bad one. Given the wide-ranging nature of this discussion, I > thought this might be the time to suggest it. The last time I had to produce a "word document" with citations I used tex4ht to generate the end-of-file bibliography and bibtex.el + hacks for creating in-text citations. Here’s snippets from my Makefile: paper_.docx: paper_.odm soffice --headless --convert-to odt paper_.odm; \ soffice --headless --convert-to docx:"MS Word 2007 XML" paper_.odt paper_.odm: all_refs.odt paper.odt paper.odt: paper.org lit.bib emacs --batch --no-init-file --load paper-config/org-conf.el paper.org --funcall org-odt-export-to-odt; \ $(call LO-TBLWIDTH, paper.odt) all_refs.odt: all_refs.tex paper.pdf biber paper.bcf --output_format=bibtex -O cited.bib; \ latexmk -dvi all_refs.tex; \ mk4ht oolatex all_refs.tex; \ abiword --to=odt all_refs.odt With all_refs.tex: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[style=authoryear]{biblatex} \addbibresource{cited.bib} \begin{document} \nocite{*} \printbibliography[heading=none] \end{document} Rasmus -- May contains speling mistake