From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Kotfila Subject: Re: Citations and references in ODT Date: Sat, 11 Jan 2014 07:35:23 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60652) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2Mfy-0000fa-Oy for emacs-orgmode@gnu.org; Sun, 12 Jan 2014 10:10:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W2Mfs-00067S-U9 for emacs-orgmode@gnu.org; Sun, 12 Jan 2014 10:10:10 -0500 Received: from plane.gmane.org ([80.91.229.3]:41633) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2Mfs-00062H-Nx for emacs-orgmode@gnu.org; Sun, 12 Jan 2014 10:10:04 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W2Mfr-0007J4-5B for emacs-orgmode@gnu.org; Sun, 12 Jan 2014 16:10:03 +0100 Received: from cpe-74-70-255-16.nycap.res.rr.com ([74.70.255.16]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 12 Jan 2014 16:10:03 +0100 Received: from kotfic by cpe-74-70-255-16.nycap.res.rr.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 12 Jan 2014 16:10:03 +0100 In-Reply-To: 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 On 01/10/14 13:10, Ken Mankoff wrote: > Hi, > > I have export with references and bibliography working well in LaTeX > export. I'm now exporting to ODT, and wonder if there is reference and > bibliography support for this file format. > > I've found this 2011 post saying "no" > https://lists.gnu.org/archive/html/emacs-orgmode/2011-07/msg00296.html > > And this 2013 post saying "yes" > https://lists.gnu.org/archive/html/emacs-orgmode/2013-07/msg00969.html > > But I'm not sure if that 2013 code is part of the latest ELPA > distribution, or if there is extra work to get it set up on my system. > > Thanks, > > -k. Hi Ken, I have found this useful for converting latex export to doc[x] #+NAME: tex-file #+BEGIN_SRC elisp (file-truename (org-latex-export-to-latex)) #+END_SRC #+NAME: export-to-docx #+BEGIN_SRC sh :results silent :var INFILE=tex-file /usr/bin/pandoc -f latex -t docx --bibliography=references.bib --csl=iso690-numeric-en.csl -i $INFILE -o $(echo $INFILE | sed -e "s/tex$/docx/") #+END_SRC Of course it is not an "Org" solution, but as a hack it has been functional for me. placing this in an org file with :noexport: and executing the second code block should produce a latex export, then convert the export to docx using pandoc and what ever csl is specified (in this case iso690-numeric-en). /Chris