From mboxrd@z Thu Jan 1 00:00:00 1970 From: edgar@openmail.cc Subject: Re: advice please: best way to export to DOC(X) with maths Date: Fri, 15 Dec 2017 03:20:50 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56125) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePgYh-0001PQ-6o for emacs-orgmode@gnu.org; Thu, 14 Dec 2017 22:21:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ePgYd-00054r-Vg for emacs-orgmode@gnu.org; Thu, 14 Dec 2017 22:21:11 -0500 Received: from onethreetwo.vfemail.net ([199.16.11.132]:6773 helo=vfemail.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ePgYd-00054G-OV for emacs-orgmode@gnu.org; Thu, 14 Dec 2017 22:21:07 -0500 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 > Date: Thu, 14 Dec 2017 12:18:24 +0000 > From: Eric S Fraga > To: emacs-orgmode@gnu.org > Subject: [O] advice please: best way to export to DOC(X) with maths > Message-ID: <87ind9pkof.fsf@gmail.com> > Content-Type: text/plain; charset="us-ascii" > > Hello, > > almost all the writing I do that is intended to be exported will be > exported to LaTeX. However, every now and again I need to export to > DOC/DOCX. > > My query is: what is the best way (i.e. the state of the art) currently > in org to export to DOC/DOCX for text that has equations? I have both > inline maths, e.g. \(i \in [0,n]\) and displayed equations. Is there a > route that will convert these to something Word et al. can process > directly, other than images? Maybe via pandoc? > > Thanks, > eric > > -- > Eric S Fraga via Emacs 27.0.50, Org release_9.1.3-168-g7455f4 I only know how to do a rough approximation by means of pandoc: #+BEGIN_SRC bash pandoc -f org+smart my-original.org -t docx+smart -o my-output.docx #+END_SRC for slightly older versions of pandoc, this may work (there is an equivalent for the references, I think): #+BEGIN_SRC bash pandoc -f org+smart --bibliography=../../References.bib my-original.org -o my-output.doc #+END_SRC I used to have a better solution, but at some point it stopped working. I didn't ask here, because 1/2 of my questions go under the radar, and I don't like to bug people with my issues: To get a working file, first export to odt with Org-mode (~C-c C-e o o~), and then run this (you can do ~C-c C-c~ on it; make sure that LibreOffice is not running) #+BEGIN_SRC shell :results none libreoffice --headless --convert-to doc ./my-.odt #+END_SRC For the latter, I used to have #+OPTIONS: tex:dvipng A better solution would be most appreciated. ------------------------------------------------- ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands! $24.95 ONETIME Lifetime accounts with Privacy Features! 15GB disk! No bandwidth quotas! Commercial and Bulk Mail Options!