# Que signifie l'erreur: « Missing number, treated as zero » ?

• Message: Missing number, treated as zero
• Origine: TeX.

Cette erreur survient lorsque s'attend à trouver un nombre ou une dimension et trouve autre chose. Par exemple, \value{page}, au lieu de \thepage, produit cette erreur puisqu'une \value isolée fait que s'attend à une assignation de bas niveau d'un compteur. En général, utiliser un registre de longueur sans fonction appropriée, comme \setlength, peut déclencher cette erreur.

On obtient également ce message lorsque \usebox n'est pas suivi d'un nom de boîte défini par \newsavebox, car, en interne, ces noms sont représentés par des nombres.

In general, this means you've tried to assign something to a count, dimension or skip register that isn't (in TeX's view of things) a number. Usually the problem will become clear using the ordinary techniques of examining errors.

Two LaTeX-specific errors are commonly aired on the newsgroups.

The commonest arises from attempting to use an example from the //The LaTeX Companion// (first edition), and is exemplified by the following error text:

! Missing number, treated as zero.
l.21 \begin{Ventry}{Return values}
The other problem, which is increasingly rare nowadays, arises from misconfiguration of a system that has been upgraded from LaTeX 2.09: the document uses the times package, and the error appears at \begin{document}. The file search paths are wrongly set up, and your \usepackage{times} has picked up a LaTeX 2.09 version of the package, which in its turn has invoked another which has no equivalent in LaTeX2e. The obvious solution is to rewrite the paths so that LaTeX 2.09 packages are chosen only as a last resort so that the startlingly simple LaTeX2e times package will be picked up. Better still is to replace the whole thing with something more modern still; current psnfss doesn't provide a times package — the alternative mathptmx incorporates Times-like mathematics, and a sans-serif face based on Helvetica, but scaled to match Times text rather better.