View Single Post
Old 03-08-2019, 12:13 AM   #4
asleyam
Enthusiast
asleyam is less competitive than you.asleyam is less competitive than you.asleyam is less competitive than you.asleyam is less competitive than you.asleyam is less competitive than you.asleyam is less competitive than you.asleyam is less competitive than you.asleyam is less competitive than you.asleyam is less competitive than you.asleyam is less competitive than you.asleyam is less competitive than you.
 
Posts: 35
Karma: 14720
Join Date: Mar 2016
Device: kindle voyage, Kobo Forma, Kobo Aura One
Is the odd output from the sigil prince pdf epub conversion?
After trying various combinations of prince style.css with the epub stylesheet I settled on a very simple prince style.css. I am not into printing pdfs for books so all the @page referencing counters and left and right pages etc, I don't have in my prince stylesheet. I also prefer to add page numbers post processing.

Basically I just have something like this (fonts as required).

@font-face {
font-family: serif;
src: local("Linux Libertine")
}

@font-face {
font-family: serif;
src: local("Noto Serif")
}


@page {
size: 6.5in 8.5in;
margin: 5mm 5mm 5mm 7mm !important;

}

@prince-pdf {
prince-pdf-open-action: zoom(fit-page)
}

body {
widows: 1;
orphans: 1;
text-align: justify;
font-size: 1.4em;
hyphens: auto;
}

Prince reads the epub css first so I specify font family weight and style there.

I have duplicates of sigil prince plugins set to different sizes. So the general pdf layout is the same except for screen size and font family/size.

I want as much text as possible to fill the ipad screen, so I leave the margins clean of things like author names/chapter titles.

One thing I do in the epub stylesheet before conversion to pdf is have the toc link 2 ways. Entries in toc>ch heading, ch heading>toc.
asleyam is offline   Reply With Quote