emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* advice please: best way to export to DOC(X) with maths
@ 2017-12-14 12:18 Eric S Fraga
  2017-12-15 12:58 ` Fabrice Popineau
  0 siblings, 1 reply; 14+ messages in thread
From: Eric S Fraga @ 2017-12-14 12:18 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 584 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: advice please: best way to export to DOC(X) with maths
@ 2017-12-15  3:20 edgar
  2017-12-15 12:28 ` Eric S Fraga
  0 siblings, 1 reply; 14+ messages in thread
From: edgar @ 2017-12-15  3:20 UTC (permalink / raw)
  To: emacs-orgmode

> 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!  

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2017-12-26  4:09 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-14 12:18 advice please: best way to export to DOC(X) with maths 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
  -- strict thread matches above, loose matches on Subject: below --
2017-12-15  3:20 edgar
2017-12-15 12:28 ` Eric S Fraga
2017-12-19  5:09   ` edgar
2017-12-21  8:58     ` Tim O'Callaghan
2017-12-26  4:09       ` Adrian Bradd

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).