View Single Post
Old 07-19-2013, 12:24 PM   #72
Gregg Bell
Gregg Bell
Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.
 
Gregg Bell's Avatar
 
Posts: 2,264
Karma: 3917588
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
thanks

Quote:
Originally Posted by gmw View Post
Yes, the styles used in my LibreOffice source are all exported to the CSS by the plug-in. The plug-in I use (Writer2xhtml*) produces a complete and reasonably clean epub file. The contents of that epub file (which is really just a zip file) includes the various .xhtml files for each chapter (the plug-in can be set to automatically split the text by heading level, so each chapter ends up in its own xhtml file with extra no work on my part), and it automatically creates the stylesheet.css file that is referenced by the various xhtml files. (Obviously it also includes all the other stuff needed by epub as well.)

So I don't have to write or maintain anything separately, I can just export directly to epub and then play in Sigil to adjust those things I want to adjust. I do a bunch of mostly unnecessary things likes rename the xhtml files to reflect the actual content: titlepage, dedication, chapter1, etc. (the export just named every separate xhtml as chapter1 .. etc.), and I play with the CSS that was automatically created to do whatever it is that I want to do. One necessary thing to check for (for best results on all ereaders) is that the CSS uses all em and % measurements rather than pixel or inches/cm.

* Note that the site heading says Writer2Latex but it offers a few conversions, one of which is Writer2xhtml - which provides an epub export option in LibreOffice and OpenOffice.
Thanks G.M. It's all so efficient. Just wonderful. Really appreciate you taking the time to explain all this stuff.
Gregg Bell is offline   Reply With Quote