blob: 49ca9f2012c4d41a9fc767fd03eae0526951bd91 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
<head>
<title>UK TeX FAQ -- question label hyperdupdest</title>
</head><body>
<h3>PDFTeX destination ... ignored</h3>
<p/>The warning:
<blockquote>
<pre>
! pdfTeX warning (ext4): destination with the same identifier
(name{page.1}) has been already used, duplicate ignored
</pre>
</blockquote><p>
arises because of duplicate page numbers in your document. The
problem is usually soluble: see
<a href="FAQ-pdfpagelabels.html">PDF page destinations</a> — which
answer also describes the problem in more detail.
<p/>If the identifier in the message is different, for example
<code>name{figure.1.1}</code>, the problem is (usually) due to a problem of
package interaction. Some packages are simply incompatible with
<i>hyperref</i>, but most work simply by ignoring it. In most
cases, therefore, you should load your package before you load
<i>hyperref</i>, and <i>hyperref</i> will patch things up so
that they work, so you can utilise your (patched) package <em>after</em>
loading both:
<blockquote>
<code>\</code><code>usepackage{<em>your package</em>}</code><br>
<code>...</code><br>
<code>\</code><code>usepackage[<em>opts</em>]{hyperref}</code><br>
<code>...</code><br>
<<i>code that uses your package</i>>
</blockquote><p>
For example:
<blockquote>
<pre>
\usepackage{float} % defines \newfloat
...
\usepackage[...]{hyperref} % patches \newfloat
...
\newfloat{...}{...}{...}
</pre>
</blockquote><p>
You should load packages in this order as a matter of course, unless
the documentation of a package says you <em>must</em> load it after
<i>hyperref</i>. (There aren’t many packages that require to be
loaded after hyperref: one such is <i>memoir</i>’s
“<i>hyperref</i> fixup” package <i>memhfixc</i>.)
<p/>If loading your packages in the (seemingly) “correct” order doesn’t
solve the problem, you need to <a href="FAQ-gethelp.html">seek further help</a>.
<p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=hyperdupdest">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=hyperdupdest</a>
</body>
|