View Full Version : NCX TOC section headings


eggheadbooks1
06-07-2013, 04:27 PM
Does anyone know of a way to add a section heading in an NCX TOC that will pass ePubcheck? The TOC I am building has a list of tables and images that are linked to, and the client wants a section heading entitled "Tables" and "Images." In Sigil I merely edited the TOC to add an entry that didn't link to anything and Sigil was fine with it, and it showed up fine in the nav menu when I tested the ePub, but unfortunately ePubcheck has an issue with it.

Any ideas?

Michelle

JSWolf
06-07-2013, 04:37 PM
You have to have a link for the ToC to be valid. What you can do is link to the first table and the first image.

eggheadbooks1
06-07-2013, 04:41 PM
Seems like a reasonable compromise.

thanks.
Michelle

eggheadbooks1
06-07-2013, 06:25 PM
Drats, no can do. ePubcheck will not allow two entries in the TOC to point to the same target. So I cannot have the heading -- Tables, for example -- point to the same table that is then listed as the first entry in that category.

Any other options?

Michelle

JSWolf
06-07-2013, 06:27 PM
Drats, no can do. ePubcheck will not allow two entries in the TOC to point to the same target. So I cannot have the heading -- Tables, for example -- point to the same table that is then listed as the first entry in that category.

Any other options?

Michelle

The other option is to do as I mentioned but the first second level menu will be table #2 or image #2.

eggheadbooks1
06-07-2013, 06:39 PM
Unfortunately, then there is no way to specify the title of the first table.

Michelle

JSWolf
06-07-2013, 07:56 PM
Tables (first table title)
Images (first image title)

eggheadbooks1
06-07-2013, 08:13 PM
In the end that's exactly what I did; not ideal but no real other options.

Michelle

eggheadbooks1
06-07-2013, 08:15 PM
What I had also tried was Tables <line break code> then the first table title. Again, worked in the actual devices but ePubcheck was having none of it: no line breaks allowed.

Michelle

JSWolf
06-07-2013, 10:55 PM
I have another idea. I don't know if this will work but it may. Give it a try, nothing to lose.

Create an ID next to the first table and next to the first image. Use these extra IDs for the top level and then you may be able to start level 2 with the first table & first image. So for the first table and first image, you'd have two different IDs and for the rest, just one ID.

Toxaris
06-08-2013, 02:43 AM
Why not use a hidden element to point to in the TOC?

eggheadbooks1
06-08-2013, 12:30 PM
I have another idea. I don't know if this will work but it may. Give it a try, nothing to lose.

Create an ID next to the first table and next to the first image. Use these extra IDs for the top level and then you may be able to start level 2 with the first table & first image. So for the first table and first image, you'd have two different IDs and for the rest, just one ID.

So simple and easy. Why did I not think of this myself? Brilliant. Thanks.

Michelle

JSWolf
06-08-2013, 06:56 PM
Why not use a hidden element to point to in the TOC?

Because those ToC entries could be selected and thus cause the display of these hidden elements. At least by having the extra ID, if the level one entries are selected by mistake, all that will happen if they will just go to the first table or the first image instead of a hidden element.

JSWolf
06-08-2013, 06:57 PM
So simple and easy. Why did I not think of this myself? Brilliant. Thanks.

Michelle

I didn't think of it myself until after you said the double entries was flagging an error. Had to think of a way to put in a different entry that would not be causing a problem. Now that we have such, I may very well use it when needed.