emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Exporting HTML to MS Word


From: Sebastian Rose
Subject: Re: [Orgmode] Exporting HTML to MS Word
Date: Wed, 02 Jun 2010 16:23:45 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Russell Adams <address@hidden> writes:
> FYI,
>
> I've found with recent versions Word 2003 fails to open an HTML
> export. It opens it in XML mode which none of my end users understand.
>
> If I delete the XML header at the top, and make the first line the
> <html> tag, it works fine.
>
> Perhaps that should be configurable in the export template?


M-x customize-variable RET org-export-html-xml-declaration RET

and set it to an empty string?

If you need to remove the the DOCTYPE too, you could use the
`org-export-html-final-hook' like this:

(add-hook 'org-export-html-final-hook
          (lambda ()
           (let ((kill-whole-line t))
            (goto-char (point-min))
            (kill-line 2))))



HTH,

  Sebastian



reply via email to

[Prev in Thread] Current Thread [Next in Thread]