From: Rainer Stengele <rainer.stengele@diplan.de>
To: emacs-orgmode@gnu.org
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 [thread overview]
Message-ID: <4C18D255.20707@diplan.de> (raw)
In-Reply-To: <20100615151632.GP32673@thinkpad.adamsinfoserv.com>
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 <html> 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
>> <rainer.stengele@diplan.de> 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 [ <?xml version="1.0" encoding="iso-8859-1"?> ] 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" . "<?xml version=\"1.0\" encoding=\"%s\"?>")
("php" . "<?php echo \"<?xml version=\\\"1.0\\\" encoding=\\\"%s\\\" ?>\"; ?>"))
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
next prev parent reply other threads:[~2010-06-16 13:32 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-15 12:27 any idea how to convert org file to MS WORD an retain text structure? Rainer Stengele
2010-06-15 13:01 ` Puneeth Chaganti
2010-06-15 13:45 ` Giovanni Ridolfi
2010-06-15 13:50 ` Rainer Stengele
2010-06-15 13:51 ` Eric S Fraga
2010-06-15 15:16 ` Russell Adams
2010-06-15 16:01 ` Srinivas
2010-06-15 20:16 ` Russell Adams
2010-06-16 13:32 ` Rainer Stengele [this message]
2010-06-15 13:01 ` moabi2000
2010-06-15 14:05 ` Christian Egli
2010-06-15 16:45 ` Matt Lundin
2010-07-06 16:55 ` Gil Brandao
2010-07-06 19:25 ` Eric S Fraga
2010-07-06 23:48 ` Torsten Wagner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C18D255.20707@diplan.de \
--to=rainer.stengele@diplan.de \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).