View Single Post
Old 08-21-2009, 05:50 AM   #4
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,544
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
I haven't tested it, but I notice you are adding the Episode lines just with \addcontentsline, and you have no real sectioning command there. That adds the line to the TOC, but hyperref does not manage the hyperlink correctly. I think the solution is, as giver here:

Using \addcontentsline within the text (together with the hyperref-package) for additional entries in the table of contents generates a hyperlink anchor on the page where the respective section starts, and not - as would be desired - on the page, where the new entry is located. The technique to change this behaviour is the command \phantomsection which needs to be placed immediately before \addcontentsline. Then the page anchor is generated correctly.

Or you may want to use \book for your parts and \part for the episodes, that way you won't need to add the TOC line manually and you can format the episode titles easily.

Last edited by Jellby; 08-21-2009 at 05:53 AM.
Jellby is offline   Reply With Quote