From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer Stengele Subject: Re: any idea how to convert org file to MS WORD an retain text structure? Date: Wed, 16 Jun 2010 15:32:05 +0200 Message-ID: <4C18D255.20707@diplan.de> References: <20100615151632.GP32673@thinkpad.adamsinfoserv.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=34849 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OOsj9-0000Ry-5q for emacs-orgmode@gnu.org; Wed, 16 Jun 2010 09:32:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OOsj4-0006WU-2Z for emacs-orgmode@gnu.org; Wed, 16 Jun 2010 09:32:23 -0400 Received: from lo.gmane.org ([80.91.229.12]:38724) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OOsj3-0006WJ-M2 for emacs-orgmode@gnu.org; Wed, 16 Jun 2010 09:32:18 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OOsj1-0006UB-Df for emacs-orgmode@gnu.org; Wed, 16 Jun 2010 15:32:15 +0200 Received: from 212.34.176.74 ([212.34.176.74]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Jun 2010 15:32:15 +0200 Received: from rainer.stengele by 212.34.176.74 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Jun 2010 15:32:15 +0200 In-Reply-To: <20100615151632.GP32673@thinkpad.adamsinfoserv.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Am 15.06.2010 17:16, schrieb Russell Adams: > I routinely have to do this. My steps are: > > - Export org to html > - Switch to the html export buffer (filename.html) > - Delete the xml lines at the top until the first line is the tag > - Save the html > - Open the html in Word > > It opens fine, and preserves image links, tables, formats, etc. This > saves time. I know there was a recent ML post I made on the same > topic, and there was a reply on automation which I haven't tried yet. > > Typically what's happening for me is I write a technical document in > Org, and I give it to a tech writer who uses Word to apply company > templates. They have less work to do because the Org formatting is > preserved. > > Babel and image links are a boon here! > > Thanks. > > On Tue, Jun 15, 2010 at 06:31:02PM +0530, Puneeth Chaganti wrote: >> Hi, >> >> On Tue, Jun 15, 2010 at 5:57 PM, Rainer Stengele >> wrote: >>> Hi! >>> >>> I love to edit documents in Org. >>> Unfortunately I have to finally deliver text in MS Word. >>> >>> Any idea how to best export/convert my org file to Word? >>> >>> I tried HTML export and then imported the html in Word but >>> I end up in an unusable xml style document which word wants an stylesheet for which I do not have. >> >> I don't have MS Word around, so I can't be sure. But, stripping off >> the the xml header [ ] and >> then opening it in OpenOffice works fine for me. I tested with a >> simple document, with a couple of sections and sub-sections and some >> unnumbered lists. >> >> >> Thanks, >> Puneeth >> >> _______________________________________________ Hi, Russel thank you, that is quite perfect! As you said, Word preserves most of the formatting and pictures etc. Looks good! I'll stick with that, setting org-export-html-xml-declaration to (("html" . "") ("was-html" . "") ("php" . "\"; ?>")) which saves me the stripping off the xml header before importing to Word! Excellent! This will help me a lot to produce documents (meeting protocols) fast and easy, sharing the result through MS Word. Thanks everybody for considering! Rainer