From mboxrd@z Thu Jan 1 00:00:00 1970 From: Srinivas Subject: Re: any idea how to convert org file to MS WORD an retain text structure? Date: Tue, 15 Jun 2010 16:01:21 +0000 (UTC) Message-ID: References: <20100615151632.GP32673@thinkpad.adamsinfoserv.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=51342 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OOYa7-0006jB-Em for emacs-orgmode@gnu.org; Tue, 15 Jun 2010 12:01:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OOYZw-0002ad-Ns for emacs-orgmode@gnu.org; Tue, 15 Jun 2010 12:01:36 -0400 Received: from lo.gmane.org ([80.91.229.12]:40945) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OOYZw-0002aP-Go for emacs-orgmode@gnu.org; Tue, 15 Jun 2010 12:01:32 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OOYZt-0007uz-Pt for emacs-orgmode@gnu.org; Tue, 15 Jun 2010 18:01:30 +0200 Received: from d058656.sce.com ([192.212.247.85]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 15 Jun 2010 18:01:29 +0200 Received: from sp_us by d058656.sce.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 15 Jun 2010 18:01:29 +0200 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 Russell Adams AdamsInfoServ.Com> writes: > > 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 > I follow a similar process but remove all styling as well so that Word applies native styles (which could come from a Word template). This allows the look and feel of the Word document to have its own styling independent of html/css styles. I have customized org-export-html-xml-declaration as follows so that I get an xml declaration only for .xhtml or .php: '(org-export-html-xml-declaration (quote (("xhtml" . "") ("php" . "\"; ?>")))) - Srinivas