![]() |
#1 |
Member
![]() Posts: 10
Karma: 10
Join Date: Jan 2019
Device: Moon+Reader (Android)
|
![]()
So guys im making an ebook of my an light novel called Overlord from scratch and im having a small problem with the TOC entries.
All the chapters are divided into parts like Part 1, Part 2 etc as shown below: Here is a screenshot of the pdf. Spoiler:
These Parts are supposed to show up below the Chapter title but once i add both Chapter title and Part 1,Part 2 to TOC, they show up on different pages on the ebook reader. Like this : Spoiler:
So is there any way i can make both the titles and Parts appear on the same page and yet have them on TOC. |
![]() |
![]() |
![]() |
#2 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,570
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
As far as the ToC goes; you don't mention whether it's an html toc or the structural ncx type, but it shouldn't matter. As long as you give the Part heading an id, you can make the link in the ToC point to a "fragment": Title Code:
href="../Text/myhtmlfile.xhtml Code:
href="../Text/myhtmlfile.xhtml#part1_id" page-break-before="always" or page-break-after="always" - will trigger a page-break even if both are part of the same html file. |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 10
Karma: 10
Join Date: Jan 2019
Device: Moon+Reader (Android)
|
Thanks for the reply.
Well , both the Chapter and Part are in the same .xhtml file. The only css im using is span(drop cap) no page-break is being applied. Im using .ncx toc. This is what the Chapter2.xhtml file looks like right now : Spoiler:
and the Toc.ncx is : Spoiler:
So the problem might because of the dropcap span ? but is there any way i can use css with these ? |
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,570
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
If there's no css specifying a page-break and everything is a part of the same html file, then the only explanation I have, is that it's an artifact of the particular app/device you're using to preview it. Have you tested it on anything else?
|
![]() |
![]() |
![]() |
#5 | |
Member
![]() Posts: 10
Karma: 10
Join Date: Jan 2019
Device: Moon+Reader (Android)
|
Quote:
I didn't find this problem on any of the desktop readers. Thanks for the help. |
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Remove TOC entries in bulk ?. | leftright | Library Management | 4 | 09-13-2015 05:06 PM |
TOC Entries from PDF | HamsterRage | Calibre | 2 | 07-12-2010 11:57 AM |
Redundant/Invalid TOC entries | Stinger | Kobo Reader | 4 | 06-26-2010 09:02 PM |
Best way to do a TOC for large numbers of entries? | HarryT | Workshop | 5 | 01-18-2009 07:02 AM |