From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Tim O'Callaghan" Subject: Re: advice please: best way to export to DOC(X) with maths Date: Thu, 21 Dec 2017 09:58:02 +0100 Message-ID: References: <87efnw41ls.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="089e0832adb03333410560d5e833" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60016) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRwgg-0004lr-DE for emacs-orgmode@gnu.org; Thu, 21 Dec 2017 03:58:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eRwge-00016I-RJ for emacs-orgmode@gnu.org; Thu, 21 Dec 2017 03:58:46 -0500 Received: from mail-yb0-x22c.google.com ([2607:f8b0:4002:c09::22c]:43288) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eRwge-000166-Kj for emacs-orgmode@gnu.org; Thu, 21 Dec 2017 03:58:44 -0500 Received: by mail-yb0-x22c.google.com with SMTP id w1so8727595ybe.10 for ; Thu, 21 Dec 2017 00:58:44 -0800 (PST) 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" To: org-mode --089e0832adb03333410560d5e833 Content-Type: text/plain; charset="UTF-8" Thanks! I will experiment with this work-flow, but i have one other issue, any advice on working with existing (word) document templates? I have to work within templates, so it would be great if i could manage to conform. On 19 December 2017 at 06:09, wrote: > On 2017-12-15 12:28, Eric S Fraga wrote: > >> On Friday, 15 Dec 2017 at 03:20, edgar@openmail.cc wrote: >> >> [...] >> >> 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 >>> >> >> What version of pandoc are you using? My Debian (testing) has pandoc >> 1.19.2.4 and it does not seem to recognise the +smart bits... >> >> But, in any case, pandoc (without the smart bits) does seem to do a >> reasonable job and creates proper maths entities. This is good enough >> for me! My once a year pain is relieved. :-) >> >> Thanks, >> eric >> > > I'm sorry for the very late response (deadlines). I will check for the > pandoc version and let you know. One of the distros that I use is a rolling > linux. The other one is the same as yours. I would also like to note that I > got the pandoc snippet from Dr. Kitchin's website: > http://kitchingroup.cheme.cmu.edu/blog/2015/01/29/Export-org > -mode-to-docx-with-citations-via-pandoc/ > > I checked, and I am very satisfied with ~C-c C-e o o~. I set #+OPTIONS: > dvipng. You can't edit the formulas, but I don't care about that. All my > equations look fine and the pictures too. I also have to copy my references > by hand, but that is the least of my issues, and I only do it when the > final version is ready. I also get my source blocks right. > > I think that the only thing which is really missing from Org as related to > exporting is handling pictures inside tables (a way to create subfigures). > There is a partial solution with ox-latex-subfigure [[ > https://github.com/linktohack/ox-latex-subfigure]], but is limited in the > :width parameter. One of these days I will learn LISP and implement it > myself (unless another brave soul goes for it first). Even Beamer columns > can be used to this end, but this would only work for presentations. I > don't know any other way. > > > ------------------------------------------------- > > 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! > --089e0832adb03333410560d5e833 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks!
I will experiment with this wor= k-flow, but i have one other issue, any advice on working with existing (wo= rd) document templates?
I have to work within templates, so it wo= uld be great if i could manage to conform.

On 19 December 2017 at 06:09, <e= dgar@openmail.cc> wrote:
On 2017-12-15 12:28, Eric S Fraga wrote:
On Friday, 15 Dec 2017 at 03:20, edgar@openmail.cc wrote:

[...]

I only know how to do a rough approximation by means of pandoc:

#+BEGIN_SRC bash
=C2=A0 =C2=A0pandoc -f org+smart my-original.org -t docx+smart -o my-outpu= t.docx
#+END_SRC

What version of pandoc are you using?=C2=A0 My Debian (testing) has pandoc<= br> 1.19.2.4 and it does not seem to recognise the +smart bits...

But, in any case, pandoc (without the smart bits) does seem to do a
reasonable job and creates proper maths entities.=C2=A0 This is good enough=
for me!=C2=A0 My once a year pain is relieved.=C2=A0 :-)

Thanks,
eric

I'm sorry for the very late response (deadlines). I will check for the = pandoc version and let you know. One of the distros that I use is a rolling= linux. The other one is the same as yours. I would also like to note that = I got the pandoc snippet from Dr. Kitchin's website: http://kitchingrou= p.cheme.cmu.edu/blog/2015/01/29/Export-org-mode-to-docx-with-cita= tions-via-pandoc/

I checked, and I am very satisfied with ~C-c C-e o o~. I set #+OPTIONS: dvi= png. You can't edit the formulas, but I don't care about that. All = my equations look fine and the pictures too. I also have to copy my referen= ces by hand, but that is the least of my issues, and I only do it when the = final version is ready. I also get my source blocks right.

I think that the only thing which is really missing from Org as related to = exporting is handling pictures inside tables (a way to create subfigures). = There is a partial solution with ox-latex-subfigure [[https://github.com/linktohack/ox-latex-subfigure]], but is li= mited in the :width parameter. One of these days I will learn LISP and impl= ement it myself (unless another brave soul goes for it first). Even Beamer = columns can be used to this end, but this would only work for presentations= . I don't know any other way.

-------------------------------------------------

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!=C2=A0 15GB disk! No= bandwidth quotas!
Commercial and Bulk Mail Options!=C2=A0

=
--089e0832adb03333410560d5e833--