On 06-01-2012 01:20, Tj.Davis@... wrote:
> I have a document that has equations with labels:
>
> \begin{equation}
> \label{eq:1}
> y=x
> \end{equation}
>
> In the past the Latex compiler would find the labels and then allow me to reference them, as in \ref{eq:1} or sometimes \eqref{eq:1}. However, on the latest version, which I updated yesterday Jan 5 2012, the compiler cannot find the labels and gives Eq.(??) in the text and an error message: LaTeX Warning: Reference `eq:1' on page 1 undefined on input line 62. This is independent of how many times I run the code (usually it has to run twice, first to list the labels and then again to reference them.) The document compiles ok on a Mac using a different compiler but not on this version 9 of MiKTex under Windows 7 (32 bit). Figure labels work fine. Is this a bug?
Consider a document called test.tex whose contents are:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
\label{eq:1}
y=x
\end{equation}
Eq~\eqref{eq:1}
\end{document}
If I compile it twice, I get what I want and the file test.aux has only
two lines:
\relax
\newlabel{eq:1}{{1}{1}}
I shall add to the bottom of this post the file test.log. What do you
get if you do same thing? In which important way is it different from
the files that I get?
Best regards,
Jose Carlos Santos
------------------------------ test.log -----------------------------
This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9) (preloaded
format=pdflatex 2011.6.2) 6 JAN 2012 09:40
entering extended mode
**test
(C:\Users\jcsantos\Documents\temp\test.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, afrikaans,
ancientgreek, ar
abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan,
coptic,
croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish,
french, ga
lician, german, german-x-2009-06-19, greek, gujarati, hindi, hungarian,
iceland
ic, indonesian, interlingua, irish, italian, kannada, kurmanji, lao,
latin, lat
vian, lithuanian, malayalam, marathi, mongolian, mongolianlmc,
monogreek, ngerm
an, ngerman-x-2009-06-19, nynorsk, oriya, panjabi, pinyin, polish,
portuguese,
romanian, russian, sanskrit, serbian, slovak, slovenian, spanish,
swedish, swis
sgerman, tamil, telugu, turkish, turkmen, ukenglish, ukrainian,
uppersorbian, u
senglishmax, welsh, loaded.
("C:\Program Files\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
("C:\Program Files\MiKTeX 2.9\tex\latex\base\size10.clo"
File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\c@...=\count79
\c@...=\count80
\c@...=\count81
\c@...=\count82
\c@...=\count83
\c@...=\count84
\c@...=\count85
\c@...=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
("C:\Program Files\MiKTeX 2.9\tex\latex\ams\math\amsmath.sty"
Package: amsmath 2000/07/18 v2.13 AMS math features
\@mathmargin=\skip43
For additional information on amsmath, use the `?' option.
("C:\Program Files\MiKTeX 2.9\tex\latex\ams\math\amstext.sty"
Package: amstext 2000/06/29 v2.01
("C:\Program Files\MiKTeX 2.9\tex\latex\ams\math\amsgen.sty"
File: amsgen.sty 1999/11/30 v2.0
\@emptytoks=\toks14
\ex@=\dimen103
))
("C:\Program Files\MiKTeX 2.9\tex\latex\ams\math\amsbsy.sty"
Package: amsbsy 1999/11/29 v1.2d
\pmbraise@=\dimen104
)
("C:\Program Files\MiKTeX 2.9\tex\latex\ams\math\amsopn.sty"
Package: amsopn 1999/12/14 v2.01 operator names
)
\inf@...=\count87
LaTeX Info: Redefining \frac on input line 211.
\uproot@=\count88
\leftroot@=\count89
LaTeX Info: Redefining \overline on input line 307.
\classnum@=\count90
\DOTSCASE@=\count91
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@...=\dimen105
LaTeX Font Info: Redeclaring font encoding OML on input line 567.
LaTeX Font Info: Redeclaring font encoding OMS on input line 568.
\macc@...=\count92
\c@...=\count93
\dotsspace@=\muskip10
\c@...=\count94
\dspbrk@...=\count95
\tag@...=\toks15
\row@=\count96
\column@=\count97
\maxfields@=\count98
\andhelp@=\toks16
\eqnshift@=\dimen106
\alignsep@=\dimen107
\tagshift@=\dimen108
\tagwidth@=\dimen109
\totwidth@=\dimen110
\lineht@=\dimen111
\@envbody=\toks17
\multlinegap=\skip44
\multlinetaggap=\skip45
\mathdisplay@...=\toks18
LaTeX Info: Redefining \[ on input line 2666.
LaTeX Info: Redefining \] on input line 2667.
)
(C:\Users\jcsantos\Documents\temp\test.aux)
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
[1
{C:/ProgramData/MiKTeX/2.9/pdftex/config/pdftex.map}]
(C:\Users\jcsantos\Docume
nts\temp\test.aux) )
Here is how much of TeX's memory you used:
807 strings out of 494049
9051 string characters out of 3148475
57880 words of memory out of 3000000
4163 multiletter control sequences out of 15000+200000
4094 words of font info for 16 fonts, out of 3000000 for 9000
715 hyphenation exceptions out of 8191
27i,4n,20p,212b,111s stack positions out of
5000i,500n,10000p,200000b,50000s
<C:/Program Files/MiKTeX 2.9/fonts/type1/public/amsfonts/cm
/cmmi10.pfb><C:/Program Files/MiKTeX
2.9/fonts/type1/public/amsfonts/cm/cmr10.p
fb>
Output written on test.pdf (1 page, 19187 bytes).
PDF statistics:
14 PDF objects out of 1000 (max. 8388607)
0 named destinations out of 1000 (max. 500000)
1 words of extra memory for PDF output out of 10000 (max. 10000000)
|