# Hyperref and nonumber/notag in equations:

When compiling my text document, I get the following warning:

[5] [6] [7pdfTeX warning (ext4): destination with the same identifier (name{equ
ation.2.0.10}) has been already used, duplicate ignored

\AtBegShi@Output ...ipout \box \AtBeginShipoutBox
\fi \fi
l.210


A quick google search reveals that this is a problem hyperref has with suppressed equation numbers: It suggests using

\begin{align*} ... \end{align*}


\begin{align} ... \notag \end{align}


Which has the same visual effect of not displaying an equation number. So far, so good. But what if I want to have an equation number for the last line of my align-environment, and only suppress the numbering of all the preceding lines?

I'm also confused about this warning occurring only once, although I use \notag all the time.

Here is a minimal example:

\documentclass{report}

\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage[T1]{fontenc}

\usepackage{amsmath}

\usepackage[hyperref, amsmath, thmmarks]{ntheorem}

\begin{document}
$$\begin{split} (a+b)^2 = \\ a^2 + 2ab + b^2 \end{split}$$
\end{document}


The offending package is ntheorem and the offending command is the split environment if I remove either of the, I get no warning any more.

-
I couldn't reproduce this. Please add a minimal working example (MWE) that illustrates your problem. –  Lev Bishop Apr 17 '11 at 19:41
if you want only one number on an aligned display, and you are using amsmath, you can use the aligned substructure within equation to get only a single number. then you don't need \notag at all. –  barbara beeton Apr 17 '11 at 20:09
@Barbara Beeton Thank you. I know about this; however, in this case the number gets centered with respect to the entire equation. I'd rather have it at the bottom. –  Lagerbaer Apr 17 '11 at 22:37
@Lev Bishop I will try to get a MWE. –  Lagerbaer Apr 17 '11 at 22:37

At least for your minimal example, it's enough to replace equation environment with gather. As the hyperref readme says: \let\equation\gather \let\endequation\endgather. Also you should load hyperref after amsmath (usually hyperref should be the last package loaded, but ntheorem is special and should come after).