* Re: any idea how to convert org file to MS WORD an retain text structure?
2010-06-15 13:01 ` Puneeth Chaganti
@ 2010-06-15 13:45 ` Giovanni Ridolfi
2010-06-15 13:50 ` Rainer Stengele
` (2 subsequent siblings)
3 siblings, 0 replies; 15+ messages in thread
From: Giovanni Ridolfi @ 2010-06-15 13:45 UTC (permalink / raw)
To: Puneeth Chaganti; +Cc: emacs-orgmode, Rainer Stengele
Puneeth Chaganti <punchagan@gmail.com> writes:
> <rainer.stengele@diplan.de> wrote:
>> 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)
then opening it in word works fine for me. ;-)
you can also dig the archives and search for somebody (Carsten?),
who suggested to use a function in the post-hook to do this automatically.
cheers,
Giovanni
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: any idea how to convert org file to MS WORD an retain text structure?
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
3 siblings, 0 replies; 15+ messages in thread
From: Rainer Stengele @ 2010-06-15 13:50 UTC (permalink / raw)
To: Puneeth Chaganti; +Cc: emacs-orgmode
Am 15.06.2010 15:01, schrieb Puneeth Chaganti:
> 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
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
yes, works fine.
My Windows OpenOffice 3.2.0 is not immediately able to save to "doc", not even to "odt".
I have to save to "sdw", then to "odt", then after opening the "odt" the saving to "doc" is possible.
I don't know why.
Thanks everybody.
Rainer
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: any idea how to convert org file to MS WORD an retain text structure?
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
3 siblings, 0 replies; 15+ messages in thread
From: Eric S Fraga @ 2010-06-15 13:51 UTC (permalink / raw)
To: Puneeth Chaganti; +Cc: emacs-orgmode, Rainer Stengele
[-- Attachment #1: Type: text/plain, Size: 1145 bytes --]
On Tue, 15 Jun 2010 18:31:02 +0530, Puneeth Chaganti <punchagan@gmail.com> 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.
I also find myself having to strip off the xml line, the first line in
the html file created upon export. You should be able to customise
org (of course) by changing the org-export-html-xml-declaration
variable, either getting rid of the html entry or maybe changing the
text argument. I have not tried either.
[-- Attachment #2: Type: text/plain, Size: 75 bytes --]
--
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D
[-- Attachment #3: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: any idea how to convert org file to MS WORD an retain text structure?
2010-06-15 13:01 ` Puneeth Chaganti
` (2 preceding siblings ...)
2010-06-15 13:51 ` Eric S Fraga
@ 2010-06-15 15:16 ` Russell Adams
2010-06-15 16:01 ` Srinivas
2010-06-16 13:32 ` Rainer Stengele
3 siblings, 2 replies; 15+ messages in thread
From: Russell Adams @ 2010-06-15 15:16 UTC (permalink / raw)
To: emacs-orgmode
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
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
------------------------------------------------------------------
Russell Adams RLAdams@AdamsInfoServ.com
PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/
Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: any idea how to convert org file to MS WORD an retain text structure?
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
1 sibling, 1 reply; 15+ messages in thread
From: Srinivas @ 2010-06-15 16:01 UTC (permalink / raw)
To: emacs-orgmode
Russell Adams <RLAdams <at> 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 <html> 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" . "<?xml version=\"1.0\"
encoding=\"%s\"?>") ("php" . "<?php echo \"<?xml version=\\\"1.0\\\"
encoding=\\\"%s\\\" ?>\"; ?>"))))
- Srinivas
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Re: any idea how to convert org file to MS WORD an retain text structure?
2010-06-15 16:01 ` Srinivas
@ 2010-06-15 20:16 ` Russell Adams
0 siblings, 0 replies; 15+ messages in thread
From: Russell Adams @ 2010-06-15 20:16 UTC (permalink / raw)
To: emacs-orgmode
On Tue, Jun 15, 2010 at 04:01:21PM +0000, Srinivas wrote:
> 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 guess the templates they put my stuff in aren't as complex. I like
that bold/italic/etc and tables come into Word preformatted. It would
be terrible to have to go reapply those manually in Word.
Thanks.
------------------------------------------------------------------
Russell Adams RLAdams@AdamsInfoServ.com
PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/
Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: any idea how to convert org file to MS WORD an retain text structure?
2010-06-15 15:16 ` Russell Adams
2010-06-15 16:01 ` Srinivas
@ 2010-06-16 13:32 ` Rainer Stengele
1 sibling, 0 replies; 15+ messages in thread
From: Rainer Stengele @ 2010-06-16 13:32 UTC (permalink / raw)
To: emacs-orgmode
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
^ permalink raw reply [flat|nested] 15+ messages in thread