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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
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