I encountered a problem which I think is related to amsmath's multi
equation environments and hyperref. The following minimal example
\documentclass{amsart}
\usepackage{hyperref}
\usepackage{amsmath}
\begin{document}
\begin{subequations}
\begin{gather} x \end{gather}
\end{subequations}
\end{document}
produces the warning
(test.out) [1{C:/ProgramData/MiKTeX/2.7/pdftex/config/pdftex.map}
pdfTeX warning
(ext4): destination with the same identifier (name{equation.0.1}) has
been alr
eady used, duplicate ignored
\AtBegShi@Output ...ipout \box \AtBeginShipoutBox
\fi \fi
l.10 \end{document}
] (test.aux) )
for each and every equation embedded in an amsmath environment within
the subequations environment. It does not show up for a non-nested
amsmath environment.
I am using MikTeX 2.7 pdflatex. hyperref.sty version is (2008/12/26
v6.78n) and amsmath.sty version is (2000/07/18 v2.13). This should be
the newest available versions as the MikTeX updates claims that no
updates are available. Confusingly I found a thread here
in which it is claimed that the problem has already been fixed a year
ago. Can somebody enlighten me as to what is going wrong with my
document and/or MikTeX distribution here ?
Thanks in advance,
Chris
> Hi all,
>
> I encountered a problem which I think is related to amsmath's multi
> equation environments and hyperref. The following minimal example
>
> \documentclass{amsart}
> \usepackage{hyperref}
> \usepackage{amsmath}
> \begin{document}
> \begin{subequations}
> \begin{gather} x \end{gather}
> \end{subequations}
> \end{document}
>
> produces the warning
>
> (test.out) [1{C:/ProgramData/MiKTeX/2.7/pdftex/config/pdftex.map}
> pdfTeX warning
> (ext4): destination with the same identifier (name{equation.0.1}) has
> been alr
> eady used, duplicate ignored
[...]
> I am using MikTeX 2.7 pdflatex. hyperref.sty version is (2008/12/26
> v6.78n) and amsmath.sty version is (2000/07/18 v2.13).
I cannot reproduce this with hyperref 6.78f and amsmath 2.13 (TL2008).
But are you sure you want to load hyperref before amsmath and not after?
Not that it should matter much here, I'd expect amsart to load amsmath
itself.
Ulrich
no problems here using this file list (TeXLive 2008)
*File List*
amsart.cls 2004/08/06 v2.20
amsmath.sty 2000/07/18 v2.13 AMS math features
amstext.sty 2000/06/29 v2.01
amsgen.sty 1999/11/30 v2.0
amsbsy.sty 1999/11/29 v1.2d
amsopn.sty 1999/12/14 v2.01 operator names
umsa.fd 2002/01/19 v2.2g AMS font definitions
amsfonts.sty 2001/10/25 v2.2f
hyperref.sty 2008/12/26 v6.78n Hypertext links for LaTeX
keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
ifpdf.sty 2007/12/12 v1.6 Provides the ifpdf switch (HO)
ifvtex.sty 2008/11/04 v1.4 Switches for detecting VTeX and its
modes (HO)
ifxetex.sty 2008/09/18 v0.4 Provides ifxetex conditional
hycolor.sty 2008/09/08 v1.4 Code for color options of
hyperref/bookmark (HO
)
xcolor-patch.sty 2008/09/08 xcolor patch
pd1enc.def 2008/12/26 v6.78n Hyperref: PDFDocEncoding definition (HO)
etexcmds.sty 2007/12/12 v1.2 Prefix for e-TeX command names (HO)
infwarerr.sty 2007/09/09 v1.2 Providing info/warning/message (HO)
hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive
kvoptions.sty 2007/10/18 v3.0 Keyval support for LaTeX options (HO)
url.sty 2006/04/12 ver 3.3 Verb mode for urls, etc.
bitset.sty 2007/09/28 v1.0 Data type bit set (HO)
intcalc.sty 2007/09/27 v1.1 Expandable integer calculations (HO)
bigintcalc.sty 2007/11/11 v1.1 Expandable big integer calculations (HO)
pdftexcmds.sty 2007/12/12 v0.3 LuaTeX support for pdfTeX utility
functions (
HO)
kvsetkeys.sty 2007/09/29 v1.3 Key value parser with default handler
support
(HO)
atbegshi.sty 2008/07/31 v1.9 At begin shipout hook (HO)
hpdftex.def 2008/12/26 v6.78n Hyperref driver for pdfTeX
umsa.fd 2002/01/19 v2.2g AMS font definitions
umsb.fd 2002/01/19 v2.2g AMS font definitions
nameref.sty 2007/05/29 v2.31 Cross-referencing by name of section
refcount.sty 2008/08/11 v3.1 Data extraction from references (HO)
Indeed the inclusion of the amsmath package is superfluous. I also do
*NOT* see this warning with hyperref (2007/02/07 v6.75r). Could it
possibly be the case that the bug was accidentally reintroduced ?
> pdfTeX warning
> (ext4): destination with the same identifier (name{equation.0.1}) has
> been alr
> eady used, duplicate ignored
> I am using MikTeX 2.7 pdflatex. hyperref.sty version is (2008/12/26
> v6.78n) and amsmath.sty version is (2000/07/18 v2.13). This should be
I cannot reproduce it with these versions. Add \listfiles and study
the .log file. Perhaps an older hyperref is found and used.
Yours sincerely
Heiko <ober...@uni-freiburg.de>
\listfiles properly indicates that hyperref 6.78n is found. What I
gather from the responses above is that TeXLive 2008 has no problems
with various hyperref versions (6.78n, 6.78f, 6.75r) but so far nobody
working with a MikTeX has responded.
I'll continue my work with a hyperref 6.75r copied from a TeXLive 2008
distribution into my MikTeX distribution. Still that is not what one
could call a clean solution. Maybe someone with a MikTeX distribution
answers.
Thanks for your help,
Chris
> \listfiles properly indicates that hyperref 6.78n is found. What I
> gather from the responses above is that TeXLive 2008 has no problems
> with various hyperref versions (6.78n, 6.78f, 6.75r) but so far nobody
> working with a MikTeX has responded.
I don't have any problem with your example on a currect miktex. Sent
the complete log file of the compilation.
--
Ulrike Fischer
For this test example
\listfiles
\documentclass{amsart}
\usepackage{hyperref}
\begin{document}
\begin{subequations}
\begin{gather} x \end{gather}
\end{subequations}
\end{document}
the log file is
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line
4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line
4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for PD1/pdf/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Try loading font information for U+msa on input
line 4.
("C:\Program Files\MiKTeX\tex\latex\amsfonts\umsa.fd"
File: umsa.fd 2002/01/19 v2.2g AMS font definitions
)
LaTeX Font Info: Try loading font information for U+msb on input
line 4.
("C:\Program Files\MiKTeX\tex\latex\amsfonts\umsb.fd"
File: umsb.fd 2002/01/19 v2.2g AMS font definitions
)
Package hyperref Info: Link coloring OFF on input line 4.
("C:\Program Files\MiKTeX\tex\latex\hyperref\nameref.sty"
Package: nameref 2007/05/29 v2.31 Cross-referencing by name of section
("C:\Program Files\MiKTeX\tex\latex\oberdiek\refcount.sty"
Package: refcount 2008/08/11 v3.1 Data extraction from references (HO)
)
\c@section@level=\count106
)
LaTeX Info: Redefining \ref on input line 4.
LaTeX Info: Redefining \pageref on input line 4.
(test.out)
(test.out)
\@outlinefile=\write3
\AtBeginShipoutBox=\box29
[1{C:/ProgramData/MiKTeX/2.7/pdftex/config/pdftex.map}pdfTeX warning
(ext4): d
estination with the same identifier (name{equation.0.1}) has been
already used,
duplicate ignored
\AtBegShi@Output ...ipout \box \AtBeginShipoutBox
\fi \fi
l.8 \end{document}
] (test.aux)
test.out
test.out
***********
)
Here is how much of TeX's memory you used:
4507 strings out of 95304
60785 string characters out of 1183223
124781 words of memory out of 1500000
7519 multiletter control sequences out of 110000
8448 words of font info for 34 fonts, out of 3000000 for 5000
175 hyphenation exceptions out of 8191
36i,7n,26p,262b,290s stack positions out of 5000i,500n,10000p,200000b,
50000s
<C:/Program Files/MiKTeX/fonts/type1/bluesky/cm/cmmi10.pfb><C:/Program
Files/
MiKTeX/fonts/type1/bluesky/cm/cmr10.pfb><C:/Program Files/MiKTeX/fonts/
type1/bl
uesky/cm/cmr7.pfb>
Output written on test.pdf (1 page, 9496 bytes).
PDF statistics:
27 PDF objects out of 1000 (max. 8388607)
3 named destinations out of 1000 (max. 131072)
13 words of extra memory for PDF output out of 10000 (max. 10000000)
Thank you for helping!
Chris
>> I don't have any problem with your example on a currect miktex. Sent
>> the complete log file of the compilation.
> For this test example
>
> \listfiles
> \documentclass{amsart}
> \usepackage{hyperref}
> \begin{document}
> \begin{subequations}
> \begin{gather} x \end{gather}
> \end{subequations}
> \end{document}
>
> the log file is
That's not the _complete_ log file.
--
Ulrike Fischer
For additional information on amsmath, use the `?' option.
("C:\Program Files\MiKTeX\tex\latex\amsmath\amstext.sty"
Package: amstext 2000/06/29 v2.01
("C:\Program Files\MiKTeX\tex\latex\amsmath\amsgen.sty"
File: amsgen.sty 1999/11/30 v2.0
\@emptytoks=\toks14
\ex@=\dimen104
))
("C:\Program Files\MiKTeX\tex\latex\amsmath\amsbsy.sty"
Package: amsbsy 1999/11/29 v1.2d
\pmbraise@=\dimen105
)
("C:\Program Files\MiKTeX\tex\latex\amsmath\amsopn.sty"
Package: amsopn 1999/12/14 v2.01 operator names
)
\inf@bad=\count79
LaTeX Info: Redefining \frac on input line 211.
\uproot@=\count80
\leftroot@=\count81
LaTeX Info: Redefining \overline on input line 307.
\classnum@=\count82
\DOTSCASE@=\count83
LaTeX Info: Redefining \ldots on input line 379.
LaTeX Info: Redefining \dots on input line 382.
LaTeX Info: Redefining \cdots on input line 467.
\Mathstrutbox@=\box26
\strutbox@=\box27
\big@size=\dimen106
LaTeX Font Info: Redeclaring font encoding OML on input line 567.
LaTeX Font Info: Redeclaring font encoding OMS on input line 568.
\macc@depth=\count84
\c@MaxMatrixCols=\count85
\dotsspace@=\muskip10
\c@parentequation=\count86
\dspbrk@lvl=\count87
\tag@help=\toks15
\row@=\count88
\column@=\count89
\maxfields@=\count90
\andhelp@=\toks16
\eqnshift@=\dimen107
\alignsep@=\dimen108
\tagshift@=\dimen109
\tagwidth@=\dimen110
\totwidth@=\dimen111
\lineht@=\dimen112
\@envbody=\toks17
\multlinegap=\skip43
\multlinetaggap=\skip44
\mathdisplay@stack=\toks18
LaTeX Info: Redefining \[ on input line 2666.
LaTeX Info: Redefining \] on input line 2667.
)
LaTeX Font Info: Try loading font information for U+msa on input
line 407.
("C:\Program Files\MiKTeX\tex\latex\amsfonts\umsa.fd"
File: umsa.fd 2002/01/19 v2.2g AMS font definitions
)
("C:\Program Files\MiKTeX\tex\latex\amsfonts\amsfonts.sty"
Package: amsfonts 2001/10/25 v2.2f
\symAMSa=\mathgroup4
\symAMSb=\mathgroup5
LaTeX Font Info: Overwriting math alphabet `\mathfrak' in version
`bold'
(Font) U/euf/m/n --> U/euf/b/n on input line 132.
)
\copyins=\insert233
\abstractbox=\box28
\listisep=\skip45
\c@part=\count91
\c@section=\count92
\c@subsection=\count93
\c@subsubsection=\count94
\c@paragraph=\count95
\c@subparagraph=\count96
\c@figure=\count97
\c@table=\count98
\abovecaptionskip=\skip46
\belowcaptionskip=\skip47
\captionindent=\dimen113
\thm@style=\toks19
\thm@bodyfont=\toks20
\thm@headfont=\toks21
\thm@notefont=\toks22
\thm@headpunct=\toks23
\thm@preskip=\skip48
\thm@postskip=\skip49
\thm@headsep=\skip50
\dth@everypar=\toks24
)
("C:\Program Files\MiKTeX\tex\latex\hyperref\hyperref.sty"
Package: hyperref 2008/12/26 v6.78n Hypertext links for LaTeX
("C:\Program Files\MiKTeX\tex\latex\graphics\keyval.sty"
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
\KV@toks@=\toks25
)
("C:\Program Files\MiKTeX\tex\generic\oberdiek\ifpdf.sty"
Package: ifpdf 2007/12/12 v1.6 Provides the ifpdf switch (HO)
Package ifpdf Info: pdfTeX in pdf mode detected.
)
("C:\Program Files\MiKTeX\tex\generic\oberdiek\ifvtex.sty"
Package: ifvtex 2008/11/04 v1.4 Switches for detecting VTeX and its
modes (HO)
Package ifvtex Info: VTeX not detected.
)
("C:\Program Files\MiKTeX\tex\generic\ifxetex\ifxetex.sty"
Package: ifxetex 2008/09/18 v0.4 Provides ifxetex conditional
)
("C:\Program Files\MiKTeX\tex\latex\oberdiek\hycolor.sty"
Package: hycolor 2008/09/08 v1.4 Code for color options of hyperref/
bookmark (H
O)
("C:\Program Files\MiKTeX\tex\latex\oberdiek\xcolor-patch.sty"
Package: xcolor-patch 2008/09/08 xcolor patch
))
\@linkdim=\dimen114
\Hy@linkcounter=\count99
\Hy@pagecounter=\count100
("C:\Program Files\MiKTeX\tex\latex\hyperref\pd1enc.def"
File: pd1enc.def 2008/12/26 v6.78n Hyperref: PDFDocEncoding definition
(HO)
)
("C:\Program Files\MiKTeX\tex\generic\oberdiek\etexcmds.sty"
Package: etexcmds 2007/12/12 v1.2 Prefix for e-TeX command names (HO)
("C:\Program Files\MiKTeX\tex\generic\oberdiek\infwarerr.sty"
Package: infwarerr 2007/09/09 v1.2 Providing info/warning/message (HO)
)
Package etexcmds Info: Could not find \expanded.
(etexcmds) That can mean that you are not using pdfTeX
1.50 or
(etexcmds) that some package has redefined \expanded.
(etexcmds) In the latter case, load this package earlier.
)
("C:\Program Files\MiKTeX\tex\latex\00miktex\hyperref.cfg"
File: hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive
)
("C:\Program Files\MiKTeX\tex\latex\oberdiek\kvoptions.sty"
Package: kvoptions 2007/10/18 v3.0 Keyval support for LaTeX options
(HO)
)
Package hyperref Info: Hyper figures OFF on input line 2907.
Package hyperref Info: Link nesting OFF on input line 2912.
Package hyperref Info: Hyper index ON on input line 2915.
Package hyperref Info: Plain pages OFF on input line 2922.
Package hyperref Info: Backreferencing OFF on input line 2927.
Implicit mode ON; LaTeX internals redefined
Package hyperref Info: Bookmarks ON on input line 3117.
("C:\Program Files\MiKTeX\tex\latex\ltxmisc\url.sty"
\Urlmuskip=\muskip11
Package: url 2006/04/12 ver 3.3 Verb mode for urls, etc.
)
LaTeX Info: Redefining \url on input line 3354.
("C:\Program Files\MiKTeX\tex\generic\oberdiek\bitset.sty"
Package: bitset 2007/09/28 v1.0 Data type bit set (HO)
("C:\Program Files\MiKTeX\tex\generic\oberdiek\intcalc.sty"
Package: intcalc 2007/09/27 v1.1 Expandable integer calculations (HO)
)
("C:\Program Files\MiKTeX\tex\generic\oberdiek\bigintcalc.sty"
Package: bigintcalc 2007/11/11 v1.1 Expandable big integer
calculations (HO)
("C:\Program Files\MiKTeX\tex\generic\oberdiek\pdftexcmds.sty"
Package: pdftexcmds 2007/12/12 v0.3 LuaTeX support for pdfTeX utility
functions
(HO)
Package pdftexcmds Info: LuaTeX not detected on input line 139.
)))
("C:\Program Files\MiKTeX\tex\generic\oberdiek\kvsetkeys.sty"
Package: kvsetkeys 2007/09/29 v1.3 Key value parser with default
handler suppor
t (HO)
)
\Fld@menulength=\count101
\Field@Width=\dimen115
\Fld@charsize=\dimen116
\Field@toks=\toks26
Package hyperref Info: Hyper figures OFF on input line 4271.
Package hyperref Info: Link nesting OFF on input line 4276.
Package hyperref Info: Hyper index ON on input line 4279.
Package hyperref Info: backreferencing OFF on input line 4286.
Package hyperref Info: Link coloring OFF on input line 4291.
Package hyperref Info: Link coloring with OCG OFF on input line 4296.
Package hyperref Info: PDF/A mode OFF on input line 4301.
("C:\Program Files\MiKTeX\tex\generic\oberdiek\atbegshi.sty"
Package: atbegshi 2008/07/31 v1.9 At begin shipout hook (HO)
)
\Hy@abspage=\count102
\c@Item=\count103
\c@Hfootnote=\count104
)
*hyperref using default driver hpdftex*
("C:\Program Files\MiKTeX\tex\latex\hyperref\hpdftex.def"
File: hpdftex.def 2008/12/26 v6.78n Hyperref driver for pdfTeX
\Fld@listcount=\count105
) (test.aux)
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line
4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 4.
I'm sorry, must have made a mistake on copy&paste.
[log-file]
I can't see any reason, why it shouldn't work. You have the same
versions than me and all other messages are similar too.
Are you sure you saved the file before the tests? To make sure that
you don't have problems with some old remains save the test document
in a new file named e.g. test2.tex and try again.
How are you compiling? Do you do something special e.g. with the
output directory?
--
Ulrike Fischer
I'm sure I saved it. Still i did what you recommended: I copied
test.tex to test2.tex and made sure that no other test2.* files are
present. Then I ran a pure 'pdflatex test2.tex' from the command line.
The resulting log file still shows the warning.
Anyway, thank you for looking at the issue.
Best,
Chris