[texhax] Latex examdesign class: bug with \ref'ing a labeled equation

Mauricio Calvao orca at if.ufrj.br
Sat May 1 23:57:25 CEST 2010


Hi Herbert

The Kile environment takes care, in principle, of as many runs as 
necessary to figure out the dependencies. At any rate, I did run Latex 
several (more than 3 times) times on the minimal .tex code which I 
recently provided as a reply to Philip's message.

What happens is that, curiously the equation numbering is correctly 
generated, but the reference (labeling) is undefined; the exact .log 
transcript is:

*****
*****     LaTeX output:
*****     cd '/home/orca/teaching/fis3/101/4h/P1/confeccao'
*****     latex -interaction=nonstopmode 'test1.tex'
*****
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
  %&-line parsing enabled.
entering extended mode
(./test1.tex
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, usenglishmax, 
dumylang, noh
yphenation, portuguese, loaded.
(./examdesign.cls
Document Class: examdesign
(/usr/share/texmf-texlive/tex/latex/base/article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size10.clo))
(/usr/share/texmf-texlive/tex/latex/tools/enumerate.sty)
(/usr/share/texmf-texlive/tex/latex/tools/multicol.sty)
(/usr/share/texmf-texlive/tex/latex/graphics/keyval.sty)
Randomizer initialized to 1325599968.)
(/usr/share/texmf-texlive/tex/latex/amsfonts/amssymb.sty
(/usr/share/texmf-texlive/tex/latex/amsfonts/amsfonts.sty))
(/usr/share/texmf-texlive/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/share/texmf-texlive/tex/latex/amsmath/amstext.sty
(/usr/share/texmf-texlive/tex/latex/amsmath/amsgen.sty))
(/usr/share/texmf-texlive/tex/latex/amsmath/amsbsy.sty)
(/usr/share/texmf-texlive/tex/latex/amsmath/amsopn.sty))
(/usr/share/texmf-texlive/tex/generic/babel/babel.sty
(/usr/share/texmf-texlive/tex/generic/babel/portuges.ldf
(/usr/share/texmf-texlive/tex/generic/babel/babel.def)))
(/usr/share/texmf-texlive/tex/latex/pstricks/pstricks.sty
(/usr/share/texmf-texlive/tex/generic/pstricks/pstricks.tex
`PSTricks' v1.15  <2006/12/22> (tvz)
(/usr/share/texmf-texlive/tex/generic/pstricks/pstricks.con))
(/usr/share/texmf/tex/latex/xcolor/xcolor.sty
(/etc/texmf/tex/latex/config/color.cfg)
(/usr/share/texmf-texlive/tex/latex/graphics/dvips.def)))
(/usr/share/texmf-texlive/tex/latex/pstricks/pst-node.sty
(/usr/share/texmf-texlive/tex/generic/pstricks/pst-node.tex
  v97 patch 11, 2000/11/09))
(/usr/share/texmf-texlive/tex/latex/pstricks/pst-plot.sty
(/usr/share/texmf-texlive/tex/generic/pstricks/pst-plot.tex
  v97 patch 2, 1999/12/12
(/usr/share/texmf-texlive/tex/generic/multido/multido.tex
  v1.41, 2004/05/18 <tvz>)))
(/usr/share/texmf-texlive/tex/latex/pstricks-add/pstricks-add.sty
(/usr/share/texmf-texlive/tex/generic/pstricks-add/pstricks-add.tex
(/usr/share/texmf-texlive/tex/latex/xkeyval/pst-xkey.tex
(/usr/share/texmf-texlive/tex/latex/xkeyval/xkeyval.sty
(/usr/share/texmf-texlive/tex/latex/xkeyval/xkeyval.tex)))
`pstricks-add' v2.82, 2006/11/22 (dr,hv)))
(/usr/share/texmf-texlive/tex/latex/graphics/graphicx.sty
(/usr/share/texmf-texlive/tex/latex/graphics/graphics.sty
(/usr/share/texmf-texlive/tex/latex/graphics/trig.sty)
(/etc/texmf/tex/latex/config/graphics.cfg))) Randomizer initialized to 1.
(./test1.aux) (/usr/share/texmf-texlive/tex/latex/amsfonts/umsa.fd)
(/usr/share/texmf-texlive/tex/latex/amsfonts/umsb.fd)
Overfull \hbox (18.72488pt too wide) detected at line 77
$[]$  $[]$

Underfull \hbox (badness 10000) in paragraph at lines 77--77

[1]
Underfull \hbox (badness 10000) in paragraph at lines 77--77


LaTeX Warning: Reference `1 at carga' on page 1 undefined on input line 77.

[1] (./test1.aux)

LaTeX Warning: There were undefined references.

  )
(see the transcript file for additional information)
Output written on test1.dvi (2 pages, 2772 bytes).
Transcript written on test1.log.


Thanks again!!


Herbert Schulz wrote:
> On May 1, 2010, at 3:04 PM, Mauricio Calvao wrote:
> 
>> Hi there,
>>
>> I have been using Jason Alexander's examdesign Latex class for quite a while now; it is excellent and essentially does all I'd like to build non-trivial exams (multiple choice, true or false questions, and usual, argumentative ones).
>>
>> However, I need to refer to a labeled equation: I used
>>
>> \begin{equation}
>> F = ma
>> \label{Newton}
>> \end{equation}
>> ...
>> Equation \ref{Newton} is Newton's second law.
>>
>> When I compile the .tex file (through Kile under Debian Linux lenny), I get the following error:
>> Reference `1 at Newton` on page 4 undefined on input line 384.
>>
>> In the class manual, dated 2001/3/26, it is stated that ``In this release, the ordinary Latex commands \label and \ref work as expected, even across different forms of the test (with the questions in a different order). Math environments using numbered equations should also work correctly in this version.''  However, that seems not to be the case...
>>
>> Does anyone have any directions or clue to fix this? Could I be using an older version of the package? In fact, I am using a modified version (for the Portuguese language) within the directory of the .tex source file itself, which, I guess, should be used INSTEAD OF any version in the system texmf file tree, right? Is this error suggesting that somehow the character @ is getting mixed up in the class?? How can I find out who the current maintainer of the package and his/her email is??
>>
>> Any help is fully appreciated!
>>
>> PS: please reply to my own email as well, since I do not use to follow closely the texhax archive
>>
> 
> Howdy,
> 
> Did you compile the document a second time?
> 
> Good Luck,
> 
> Herb Schulz
> (herbs at wideopenwest dot com)
> 
> 
> 


-- 
#######################################
Prof. Mauricio Ortiz Calvao
Federal University of Rio de Janeiro
Institute of Physics, P O Box 68528
CEP 21941-972 Rio de Janeiro, RJ
Brazil

Email: orca at if.ufrj.br
Phone: (55)(21)25627483
Homepage: http://www.if.ufrj.br/~orca
#######################################


More information about the texhax mailing list