MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Workshop (https://www.mobileread.com/forums/forumdisplay.php?f=178)
-   -   Page break and TOC entries (https://www.mobileread.com/forums/showthread.php?t=211795)

John123 04-28-2013 09:14 AM

Page break and TOC entries
 
Hi All,

I'm not really sure of this question or even how to frame it adequately so I'll outline the problem.

I am using InDesign, Sigil and Calibre.

I have typeset a book with footnotes, InDesign can export this well into epub and puts in all the footnote references and back-references and they work.

Unfortunately, InDesign exports it all into one .xhtml file (I know the problem with older ereaders and filesize limitations), the split file option doesn't seem to work.

In the CSS style sheet the p class Chapter Number has as one of its entries:

{
break-before:page;
}

But in ADE, KindlePreviewer and Calibre the Chapter Number doesn't start a new page.

I would need to use Sigil to break up the document but then the footnotes would all have to be edited to add the xhtml filenames to get the references to function.

Also, how do I get Sigil to recognise TOC entries from the p class Chapter Number?

So, I think I have two queries a) Page breaks at chapter number and; b) Sigil TOC from CSS style sheet.

Many thanks,

John.

Doitsu 04-28-2013 09:37 AM

Quote:

Originally Posted by John123 (Post 2496784)

In the CSS style sheet the p class Chapter Number has as one of its entries:

{
break-before:page;
}

But in ADE, KindlePreviewer and Calibre the Chapter Number doesn't start a new page.

AFAIK, break-before is a CSS3 property that is not supported by ADE and other older readers. Try page-break-before: always; instead.

Quote:

Originally Posted by John123 (Post 2496784)

Also, how do I get Sigil to recognise TOC entries from the p class Chapter Number?

Sigil cannot generate TOC entries from <p> tags, you'll have to (temporarily) change them to <h1> heading tags.

John123 04-28-2013 02:17 PM

Quote:

Originally Posted by Doitsu (Post 2496799)
AFAIK, break-before is a CSS3 property that is not supported by ADE and other older readers. Try page-break-before: always; instead.

This worked thanks. I thought I read somewhere that there were problems using page-break-before and had to be used in conjunction with page-break-after??

Quote:

Sigil cannot generate TOC entries from <p> tags, you'll have to (temporarily) change them to <h1> heading tags.
I'm not sure what you mean by "temporarily" how I could do this?

lissie 05-14-2013 02:39 AM

Not quite sure why Doistu said the change to heading tags should be temprorary - they should be headers anyways so you can style them appropriatesly - and yest Sigil will then pick them up as a default TOC if that is what you want.

I'm not familiar wtih InDesign - but usually you just select the element and attach the style - Sigil will do it too

Doitsu 05-14-2013 05:26 AM

Quote:

Originally Posted by lissie (Post 2513460)
Not quite sure why Doistu said the change to heading tags should be temprorary - they should be headers anyways so you can style them appropriatesly - and yest Sigil will then pick them up as a default TOC if that is what you want.

Of course, they should ideally be h1..h6 headings, but since the OP used a "p class Chapter Number," the only way to have Sigil generate a TOC would be to replace all of these paragraph tags with h1..h6 headings. Afterwards he could theoretically rename them back to paragraphs tags to restore the file to the condition before generating the TOC, however, it'd pretty much pointless.


All times are GMT -4. The time now is 10:04 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.