From: edgar@openmail.cc
To: emacs-orgmode@gnu.org
Subject: Re: advice please: best way to export to DOC(X) with maths
Date: Fri, 15 Dec 2017 03:20:50 +0000 [thread overview]
Message-ID: <e0faef76294a2b2534545543f0f18f82@openmail.cc> (raw)
> Date: Thu, 14 Dec 2017 12:18:24 +0000
> From: Eric S Fraga <esflists@gmail.com>
> 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!
next reply other threads:[~2017-12-15 3:21 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-15 3:20 edgar [this message]
2017-12-15 12:28 ` advice please: best way to export to DOC(X) with maths Eric S Fraga
2017-12-19 5:09 ` edgar
2017-12-21 8:58 ` Tim O'Callaghan
2017-12-26 4:09 ` Adrian Bradd
-- strict thread matches above, loose matches on Subject: below --
2017-12-14 12:18 Eric S Fraga
2017-12-15 12:58 ` Fabrice Popineau
2017-12-15 13:30 ` Eric S Fraga
2017-12-15 14:54 ` Tim O'Callaghan
2017-12-15 18:15 ` Adonay Felipe Nogueira
2017-12-15 18:43 ` Grant Rettke
2017-12-17 16:55 ` Scott Randby
2017-12-18 3:14 ` Grant Rettke
2017-12-18 23:45 ` Scott Randby
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e0faef76294a2b2534545543f0f18f82@openmail.cc \
--to=edgar@openmail.cc \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.