Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 07-06-2010, 11:07 AM   #1
forlor
Junior Member
forlor began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jul 2010
Device: none
Generating TOC entries for prelims / end matter in InDesign

Hello,

Wondering if anyone has insight / ideas on this...

I am converting a series of books to ePub in InDesign, which largely follow the same format (cover, title page, dedication, preface, chapter 1...etc.), though there is occasionally some variation between titles (some do not have a dedication, for instance). I am using the InDesign Table of Contents dialogue box to generate the TOC entries in ePub (mapped to the chapter heading style). However, we would also like to have TOC entries for the prelims (eg, title page, dedication) and end matter (eg, copyright page), which do not have headings associated with them.

The workaround that I've been using is to create text anchors on those pages. Though this does generate TOC entries, the problem is that it uses the text selected for the text anchor (as opposed to "Title Page" or "About the author" as we would like). I then need to go into the NCX file and manually edit the text for each of these entries.

Is there any way to get InDesign to generate the correct TOC entries the first time around?

Any ideas at all would be appreciated.

Thanks,
Joseph
forlor is offline   Reply With Quote
Old 07-06-2010, 11:45 AM   #2
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,514
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Maybe you could write the title you want for the TOC entry, make it an anchor, and apply a "display: none" attribute. But I don't know how InDesign works.
Jellby is offline   Reply With Quote
Advert
Old 07-06-2010, 12:56 PM   #3
forlor
Junior Member
forlor began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jul 2010
Device: none
Yes, that will do it. It never occurred to us to use the display attribute.

Thanks for your help!
forlor is offline   Reply With Quote
Old 07-06-2010, 01:08 PM   #4
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
It would be a lot easier if InDesign didn't include text on hidden layers in its epub output. But...
charleski is offline   Reply With Quote
Old 07-07-2010, 01:32 AM   #5
Chang
Connoisseur
Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!
 
Posts: 87
Karma: 50000
Join Date: Oct 2009
Device: none
Quote:
Originally Posted by Jellby View Post
Maybe you could write the title you want for the TOC entry, make it an anchor, and apply a "display: none" attribute. But I don't know how InDesign works.
Do you mean to apply "display: none" in CSS or..?
Chang is offline   Reply With Quote
Advert
Old 07-07-2010, 06:18 AM   #6
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,514
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Yes, I mean in CSS, assuming InDesign lets you add CSS code (or something else that is turned into "display: none" upon conversion).
Jellby is offline   Reply With Quote
Old 07-07-2010, 07:51 AM   #7
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
InDesign lets you specify an external css file to use for the epub. You just need to make sure that the selectors in this file match the names of the styles that you've used in your InDesign document and that's what will appear in the epub.

If you're using this feature then you have to specify all the styling in the external css file, as InDesign won't generate any styles itself. So you can create a css file like
Code:
.normal {
   ...
}

.flush {
   ...
}

.head1 {
   ...
}

.hidden {
   display: none
}
then create paragraph or character styles in InDesign named 'normal', 'flush', 'head1' and 'hidden'. Any text which has been given the style named 'hidden' will not appear in the epub, though it will still be present in the xhtml code.
charleski is offline   Reply With Quote
Old 07-07-2010, 08:26 AM   #8
Chang
Connoisseur
Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!
 
Posts: 87
Karma: 50000
Join Date: Oct 2009
Device: none
Thanks a lot for both of you (again)! I'm not so familiar with every CSS feature and didn't know that something like "display: none" exists. I have circled this same problem by deleting the unnecessary text after I have exported EPUB from InDesign. I have just moved the anchor to the next element in XHTML code. Good to know that there's this kind of option as well.
Chang is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem generating TOC ronin712 Calibre 11 09-06-2015 11:53 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
Trouble generating a TOC foghat Calibre 2 05-07-2010 06:00 PM
Best way to do a TOC for large numbers of entries? HarryT Workshop 5 01-18-2009 07:02 AM


All times are GMT -4. The time now is 03:22 AM.


MobileRead.com is a privately owned, operated and funded community.