[texhax] Contents with wrong links

Rafael Reis rafaelcpr at gmail.com
Thu May 17 11:54:13 CEST 2007


I finally got it:

\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{Name}

The right name is \phantomsection, and \cleardoublepage works fine
with oneside and twoside books, no matter where you put it.

Thanks,

Rafael.

On 5/17/07, Adam ENDRODI <borso at vekoll.saturnus.vein.hu> wrote:
> On Wed, May 16, 2007 at 08:24:38PM +0200, Rafael Reis wrote:
> > The Table of Contents of the code bellow links to wrong positions (the
> > end of the previous page).
>
> I observed a similar problem when the section heading was just at the
> bottom of a page and latex decided to move it to the next one and
> the anchors were created manually by \hypertarget.  In this case
> an explicit \newpage preceeding the heading command helped.
>
> Hope this helps a bit,
> adam
>


More information about the texhax mailing list