View Single Post
Old 05-13-2023, 06:08 AM   #7
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,343
Karma: 105899727
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
Anyway, I wish there was a reverse option: create a html file for each chapter in current TOC.
Convert the ebook (even epub to epub) with the detection of chapters and you get a copy with a new TOC and a file per chapter.

I once only ever in all the years (since XP Calibre) got a file per paragraph because the epub had a <p class="chapter"> tag at the start of every paragraph! Easily fixed either by editing Structure Detection command and re-converting original or global <p class="chapter" to <p class="p-body" in the editor.

Do be sure to use styles in LO Writer and never* direct formatting. I have the Outline browser and Style Browser open either floating (6.x) or docked (7.x)
Click image for larger version

Name:	Screenshot at 2023-05-13 11-00-10.png
Views:	75
Size:	392.7 KB
ID:	201519

I proof epub version first and only when polished save an extra copy with a new name for PDF with header, footer, page numbers and different page styles for Front matter, Start of Chapter, Left Page, Right Page and End Matter in exact size required for paper.

Content changes only on the version for epub and I use a 420 pt wide 560 pt high page style.
Epub:
Use "pt" and all epub renderers should render 12pt = 1em

PDF:
Use mm or inches.

Change the default substitution as you type rules.

Add real name or pen name in Tools Options so location last used is position when you open, using odt format only.

Only edit/save in odt. Do extra Save As for docx and don't edit it.

PDF export is perfect.

Don't use same file for epub and PDF.

[* You can apply character Styles if really wanted for Em and Strong, but direct format of italics, bold (avoid, have as style in headings), superscript and subscript will map to HTML. Styles of all kinds (except page) map to CSS exactly. Page styles have no meaning for epub creation, but best to have all pages the same "default" style with no headings, footers or page numbers.]

Last edited by Quoth; 05-13-2023 at 06:12 AM.
Quoth is offline   Reply With Quote