Page LayoutClick on Acknowledgment goes to LoF

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
zubayer
Posts: 2
Joined: Sun Dec 11, 2011 6:36 am

Click on Acknowledgment goes to LoF

Post by zubayer »

Hello,

When I click Acknowledgment in the table of contents, it takes me to List of Figures instead of Acknowledgment page. Not sure what I am missing here.

Code: Select all

\pagebreak
\tableofcontents
\listoftables
\listoffigures
\pagebreak

\thispagestyle{plain}
\onehalfspacing
\begin{center} \textbf{Acknowledgment}\\
\end{center}
It is a pleasure to thank those who have made this thesis possible...
\addcontentsline{toc}{chapter}{Acknowledgment}
Last edited by zubayer on Sun Dec 11, 2011 7:10 pm, edited 1 time in total.

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

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

Re: Click on Acknowledgment goes to LoF

Post by Stefan Kottwitz »

Hi zubayer,

welcome to the board!

Use \phantomsection before \addcontentsline to generate an anchor for hyperref.

Stefan
LaTeX.org admin
zubayer
Posts: 2
Joined: Sun Dec 11, 2011 6:36 am

Re: Click on Acknowledgment goes to LoF

Post by zubayer »

Thanks, Stefan. Your suggestion worked!

All the best.
Zubayer
Post Reply