GeneralWrong cross references in pdftex

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Fandall
Posts: 1
Joined: Tue Jun 12, 2007 10:07 am

Wrong cross references in pdftex

Post by Fandall »

Hi all, I have a very annoying problem.
My cross references for graphics (only; tables work fine) are all wrong.
They aren't showing the correct figure number and by clicking on the link it leads you sometimes to a formula, or a section title but not the figure...
Oddly enough, the \listoffigures command creates all links and numbering correctly. Only the appearances in the text body are utterly wrong.
How can this be? (They all worked correctly under normal latex)
My header reads like this:

Code: Select all

\documentclass[a4paper,notitlepage,twoside]{report}
\usepackage[german]{babel}
\usepackage[pdftex]{graphicx,color}
%\usepackage{fancyhdr}
%\pagestyle{fancy}
\usepackage{graphics}
\usepackage{textcomp}
\usepackage{verbatim}
\usepackage{amssymb}
\usepackage[pdftex,colorlinks,bookmarks]{hyperref}
Any advice is greatly appreciated, thx in advance!

Greetings
Fandall

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

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

Wrong cross references in pdftex

Post by localghost »

In this case it is necessary to have a complete minimum working example (MWE) to comprehend the problem. Your header seems not to have any unusual code. One thing to mention is the fact that you can omit the graphics package, because you include the graphicx package earlier. And you better use the option ngerman for the babel package.

Code: Select all

\documentclass[a4paper,notitlepage,twoside]{report}
\usepackage[ngerman]{babel}
\usepackage{graphicx,xcolor}
%\usepackage{fancyhdr}

\usepackage{textcomp}
\usepackage{verbatim}
\usepackage{amssymb}
\usepackage[colorlinks,bookmarks]{hyperref}

%\pagestyle{fancy}
So, generate a MWE that reproduces the strange behaviour.
Post Reply