GeneralWarning regarding Anchor and Bookmark

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
kasperhh
Posts: 7
Joined: Mon Nov 19, 2012 10:56 am

Warning regarding Anchor and Bookmark

Post by kasperhh »

Hi everybody,

I have a problem with this code in LaTeX and can't figure out why?

Code: Select all

\begingroup
\raggedright
\addcontentsline{toc}{chapter}{\numberline{}Literature} 
\bibliography{bibtex/literature}
\endgroup
The warning is this one.

Code: Select all

package hyperref warning the anchor of a bookmark and its parent's must
not be the same. Added a new anchor on input line 72.
Please help, anybody whith a solution?

Kasper

Recommended reading 2024:

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

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Warning regarding Anchor and Bookmark

Post by localghost »

For some reason hyperref is irritated. Obviously you try to generate a ToC entry for your bibliography. In this case try tocbibind if you are using a standard class. Other classes like those from KOMA-Script or the memoir class have built-in mechanisms for that.

If that doesn't help, please prepare a self-contained and minimal example to give an adequate problem description and to prevent others from guesswork and random shots.


Thorsten
helgeb
Posts: 1
Joined: Wed Apr 17, 2013 11:19 am

Warning regarding Anchor and Bookmark

Post by helgeb »

I solved the problem by adding a

Code: Select all

\phantomsection
before the section I wanted to add.

Now it looks like this:

Code: Select all

\phantomsection
\section*{Appendix A: List of abbrevations}
\addcontentsline{toc}{section}{Appendix A: List of abbrevations}
No more waring =)
Post Reply