On 23/08/13 10:26, Jerry wrote:
On Aug 21, 2013, at 5:16 AM, Les Denham <lden...@hal-pc.org> wrote:

On Tue, 20 Aug 2013 18:13:23 -0700
Jerry <lancebo...@qwest.net> wrote:

On Aug 18, 2013, at 6:59 PM, Les Denham <lden...@hal-pc.org> wrote:

My general approach to  getting a LyX document into Word format is
to us the LyXHTML export, import the exported file into
LibreOffice, fix the inevitable problems, and save in DOCX format.
How do you import the XHTML from LyXHTML into LibreOffice? When I try
it, I see only raw text; it is not rendered. I let the file dialog
display all files and assumed that the .xhtml file extension would
tell LO what to do but obviously this did not happen.

Jerry,

One of the inevitable problems. Try changing the .xhtml file extension
to .html. I think you can also delve into the advanced settings of
LibreOffice to tell it to treat .xhtml files as HTML.

Les
Les, thanks for that tip, but it didn't change anything--still raw text, either with a 
document with a few equations (and thus MathML in the XHTML file) or just a simple file 
containing only the word "Hello".

FWIW, when I do open the (x)html file, I get a dialog asking for Character set 
(default = UTF-8), Default fonts (default = Times New Roman), Language (default 
= English (US)) and Paragraph break (default = LF). I accepted all the 
defaults. So it looks at that point like something is about to happen, but then 
I see only raw text.

I also looked at Tools -> Options -> Load/Save -> HTML Compatibility but didn't 
see anything relevant.

Jerry
Open the HTML file in a text editor and remove the first line, ie, <?xml version="1.0" encoding="UTF-8"?>

It should then open in LibreOffice.

Cheers,
Alan

--
Alan L Tyree                    http://www2.austlii.edu.au/~alan
Tel:  04 2748 6206              sip:typh...@iptel.org

Reply via email to