From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: org-ref exports nicely to html but not to odt Date: Sat, 05 Jan 2019 10:21:43 +0000 Message-ID: <8736q7pfpk.fsf@gmail.com> References: <87tviouz88.fsf@mat.ucm.es> <87va34yw6s.fsf@geus3064linuxwsm.geus.dk> <87zhsgf6ju.fsf@mat.ucm.es> <87tvioyttm.fsf@geus3064linuxwsm.geus.dk> <87va34f57c.fsf@mat.ucm.es> <87d0pbfq24.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggsout.gnu.org ([209.51.188.92]:59649 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gfj5W-0004i7-Tp for emacs-orgmode@gnu.org; Sat, 05 Jan 2019 05:21:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gfj5R-0000yr-9o for emacs-orgmode@gnu.org; Sat, 05 Jan 2019 05:21:54 -0500 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]:55996) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gfj5P-0000xm-9R for emacs-orgmode@gnu.org; Sat, 05 Jan 2019 05:21:47 -0500 Received: by mail-wm1-x32d.google.com with SMTP id y139so3106616wmc.5 for ; Sat, 05 Jan 2019 02:21:45 -0800 (PST) Received: from t3610 ([95.151.192.192]) by smtp.gmail.com with ESMTPSA id p12sm3446069wmi.5.2019.01.05.02.21.43 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 05 Jan 2019 02:21:43 -0800 (PST) In-Reply-To: <87d0pbfq24.fsf@mat.ucm.es> (Uwe Brauer's message of "Sat, 05 Jan 2019 09:48:19 +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" To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain I use the following (attached) script to convert LaTeX files (usually generated by org) to docx. It sometimes works well, or at least well enough for my uses. Maybe you can adapt it to your needs. -- Eric S Fraga via Emacs 27.0.50, Org release_9.1.14-1035-gfeb442 --=-=-= Content-Type: text/x-sh Content-Disposition: attachment; filename=tex2docx.sh #!/bin/sh -f BASE=$(basename $1 .tex) CSL="/home/ucecesf/synced/share/citation.styles/acm-siggraph.csl" if [ -f default.csl ]; then CSL="default.csl" fi echo "Converting " $BASE.tex " to " $BASE.docx " using bib style " $CSL pandoc --bibliography=/home/ucecesf/synced/share/texmf/bibtex/bib/bibliography.bib --csl=${CSL} --filter pandoc-citeproc ${BASE}.tex -o ${BASE}.docx #pandoc --bibliography=/home/ucecesf/share/texmf/bibtex/bib/papers.bib --csl=/home/ucecesf/synced/share/citation.styles/elsevier-with-titles.csl --filter pandoc-citeproc ${BASE}.tex -o ${BASE}.docx --=-=-=--