From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adrian Bradd Subject: Re: advice please: best way to export to DOC(X) with maths Date: Mon, 25 Dec 2017 23:09:02 -0500 Message-ID: References: <87efnw41ls.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32780) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eTgY9-000071-7n for emacs-orgmode@gnu.org; Mon, 25 Dec 2017 23:09:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eTgY5-0002Rm-QW for emacs-orgmode@gnu.org; Mon, 25 Dec 2017 23:09:09 -0500 Received: from mail-qk0-x22e.google.com ([2607:f8b0:400d:c09::22e]:42380) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eTgY5-0002RE-HV for emacs-orgmode@gnu.org; Mon, 25 Dec 2017 23:09:05 -0500 Received: by mail-qk0-x22e.google.com with SMTP id d202so17940618qkc.9 for ; Mon, 25 Dec 2017 20:09:05 -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: Tim O'Callaghan Cc: org-mode According to Karl's post [1], pandoc now supports conversion with some template support. I haven't tried it myself though. Cheers, Adrian [1] http://www.karl-voit.at/2017/12/17/pandoc-docx-reference/ Tim O'Callaghan writes: > 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! >> -- Adrian Bioelectronic Systems Lab, Columbia University