GeneralManually inserted Headings not linked correctly

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
momsse
Posts: 4
Joined: Sun Aug 14, 2011 11:16 pm

Manually inserted Headings not linked correctly

Post by momsse »

Hello,

I'm working on a report and i found two solution for put introduction and conclusion in the TOC without count them as chapters:

Code: Select all

%Solution 1 :
\chapter*{Introduction}
\addstarredchapter{Introduction}

%Solution 2 :
\chapter*{Introduction}
\addcontentsline{toc}{chapter}{Introduction}
But i have a little "problem", when i click on the introduction or conclusion part from the TOC (or the pdf bookmarks) i have a "gap" that hide me the title of the chapter like on the attached screenshots.

Does there exist a workaround for that ?

Thank you in advance for your helps !
Attachments
with_gap.jpg
with_gap.jpg (86.59 KiB) Viewed 1764 times
gap_content.png
gap_content.png (51.81 KiB) Viewed 1764 times
Last edited by momsse on Mon Aug 15, 2011 7:04 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Manually inserted Headings not linked correctly

Post by Stefan Kottwitz »

Hi,

I guess you mean the pdf link target is too low.

Try:

Code: Select all

\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{Introduction}
\chapter*{Introduction}
Here, firstly a new page is started, a anchor is created, then the entry to the TOC is created with link to that anchor - this time before \chapter*.

Stefan
LaTeX.org admin
momsse
Posts: 4
Joined: Sun Aug 14, 2011 11:16 pm

Re: Manually inserted Headings not linked correctly

Post by momsse »

Thank you again, that's exactly what i'm talking about !
Post Reply