# [texhax] Latex examdesign class: bug with \ref'ing a labeledequation

Philip G. Ratcliffe philip.ratcliffe at fastwebnet.it
Sat May 1 22:47:53 CEST 2010

> 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

Me too and I fully agree.

> [snip]
> However, I need to refer to a labeled equation: I used
>
>
> F = ma
> \label{Newton}
>
> ...
> 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.
> [snip]

Hmm, I've just tried your snippet on my (fully up-to-date MiKTeX) system
inside a "shortanswer" environment and .. it works!

Of course, you did run LaTeX twice, didn't you?

So, as the saying goes, can we have a full minimal example please?

Ciao,  Phil