View Single Post
Old 04-09-2022, 05:36 PM   #42
philja
Addict
philja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enough
 
Posts: 270
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
Quote:
Originally Posted by Doitsu View Post
I've just tested the plugin on my Arch Linux machine with the latest JRE, and it worked fine.

Since the plugin comes with Writer2LaTeX 1.6.0, maybe replacing writer2latex.jar with the Writer2LaTeX 1.6.1 .jar file might help.

You can check which version is installed by looking at the HTML source code of converted .odt files.
Spoiler:
Code:
<!-- This file was converted to xhtml by Writer2xhtml ver. 1.6.1. See http://writer2latex.sourceforge.net for more info. -->

If it doesn't say Writer2xhtml ver. 1.6.1., you're still using Writer2LaTeX 1.6.0.
(You can download Writer2LaTeX 1.6.1 from the author's website.)
Please note that the 1.9.x versions don't support .epub output and can't be used with this plugin.

If replacing Writer2LaTeX 1.6.0 with Writer2LaTeX 1.6.1 didn't help, you might have to upgrade/downgrade JRE/Java.
It also couldn't hurt to save your .odt file as a .docx file and then save it as an .odt file again.
Thanks for the prompt reply. First, because I suspected my odt file rather than the tools, I tried your suggestion of saving to docx and then back to odt but that didn't bring happiness. So I went for the other checks.

I did have the older Writer2Latex 1.6.0 so I fetched 1.6.1 and swapped out the writer2latex.jar file in the ODTimport plugin. That appears to have fixed the problem and Sigil has now converted my odt file to epub.

Just remains now to tune up the epub a bit to correspond with my own style.css file.

Thanks for the help.
philja is offline   Reply With Quote