# Différences

Ci-dessous, les différences entre deux révisions de la page.

 2_programmation:erreurs:missing_number_treated_as_zero [2018/06/03 15:34]d.p.carlisle 2_programmation:erreurs:missing_number_treated_as_zero [2021/01/10 17:16]jejust Suppression après fusion avec "generalites/erreurs/m/missing_number_treated_as_zero". Les deux révisions précédentes Révision précédente 2021/01/10 17:16 jejust Suppression après fusion avec "generalites/erreurs/m/missing_number_treated_as_zero".2018/12/04 01:32 jejust 2018/06/03 16:22 joseph.wright 2018/06/03 16:17 samcarter 2018/06/03 15:34 d.p.carlisle 2018/06/03 15:32 samcarter 2018/06/03 15:17 samcarter 2018/06/03 15:16 joseph.wright 2018/06/03 15:16 d.p.carlisle 2018/06/03 15:12 samcarter 2018/06/03 15:03 joseph.wright 2018/06/03 15:02 samcarter 2018/06/03 14:58 joseph.wright 2018/06/03 11:59 d.p.carlisle 2018/06/02 17:35 joseph.wright 2018/06/02 16:44 d.p.carlisle 2018/05/25 23:18 joseph.wright 2018/05/25 21:32 joseph.wright 2018/05/25 10:58 joseph.wright 2018/05/25 10:56 joseph.wright 2018/05/25 00:03 joseph.wright 2018/05/25 00:03 joseph.wright 2018/05/24 19:49 joseph.wright 2018/05/24 19:07 joseph.wright 2018/05/24 18:58 joseph.wright 2018/05/24 10:39 joseph.wright 2018/05/24 10:39 joseph.wright 2018/05/24 10:30 joseph.wright 2018/05/23 23:26 joseph.wright 2018/05/23 23:20 joseph.wright Prochaine révision Révision précédente 2021/01/10 17:16 jejust Suppression après fusion avec "generalites/erreurs/m/missing_number_treated_as_zero".2018/12/04 01:32 jejust 2018/06/03 16:22 joseph.wright 2018/06/03 16:17 samcarter 2018/06/03 15:34 d.p.carlisle 2018/06/03 15:32 samcarter 2018/06/03 15:17 samcarter 2018/06/03 15:16 joseph.wright 2018/06/03 15:16 d.p.carlisle 2018/06/03 15:12 samcarter 2018/06/03 15:03 joseph.wright 2018/06/03 15:02 samcarter 2018/06/03 14:58 joseph.wright 2018/06/03 11:59 d.p.carlisle 2018/06/02 17:35 joseph.wright 2018/06/02 16:44 d.p.carlisle 2018/05/25 23:18 joseph.wright 2018/05/25 21:32 joseph.wright 2018/05/25 10:58 joseph.wright 2018/05/25 10:56 joseph.wright 2018/05/25 00:03 joseph.wright 2018/05/25 00:03 joseph.wright 2018/05/24 19:49 joseph.wright 2018/05/24 19:07 joseph.wright 2018/05/24 18:58 joseph.wright 2018/05/24 10:39 joseph.wright 2018/05/24 10:39 joseph.wright 2018/05/24 10:30 joseph.wright 2018/05/23 23:26 joseph.wright 2018/05/23 23:20 joseph.wright 2018/05/23 22:26 joseph.wright 2018/05/23 18:47 joseph.wright 2018/05/23 15:55 d.p.carlisle 2018/05/22 21:40 joseph.wright 2018/05/22 13:35 joseph.wright créée Ligne 1: Ligne 1: - --- + ====== ​"​Missing number, treated as zero" ​====== - title: ​"​Missing number, treated as zero"​ + - category: errors + - permalink: /​FAQ-nonum + - --- + In general, this means you've tried to assign something to a count, 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 dimension or skip register that isn't (in TeX's view of things) a number. ​ Usually the problem will become clear using the number. ​ Usually the problem will become clear using the - [ordinary techniques of examining errors](FAQ-erroradvice). + [[FAQ-erroradvice|ordinary techniques of examining errors]]. Two LaTeX-specific errors are commonly aired on the newsgroups. Two LaTeX-specific errors are commonly aired on the newsgroups. The commonest arises from attempting to use an example from the The commonest arises from attempting to use an example from the - [_The LaTeX Companion_ ​(first edition)](FAQ-latex-books), and is + [[FAQ-latex-books|//​The ​LaTeX Companion// ​(first edition)]], and is exemplified by the following error text: exemplified by the following error text: - latex + + <​code ​latex> ! Missing number, treated as zero. ! Missing number, treated as zero.  ​  ​ ​\relax ​ ​\relax ​ l.21 \begin{Ventry}{Return values} l.21 \begin{Ventry}{Return values} -  + ​ The problem arises because, in its first edition, the The problem arises because, in its first edition, the - _Companion_'s examples always assumed that the [calc](https://​ctan.org/​pkg/​calc) + //​Companion//​'s examples always assumed that the [[ctanpkg>​calc|calc]] package is loaded: this fact is mentioned in the book, but often not package is loaded: this fact is mentioned in the book, but often not - noticed. ​ The remedy is to load the [calc](https://​ctan.org/​pkg/​calc) package in any + noticed. ​ The remedy is to load the [[ctanpkg>​calc|calc]] package in any - document using such examples from the _Companion_.  (The problem + document using such examples from the //​Companion//​.  (The problem does not really arise with the second edition; copies of all the does not really arise with the second edition; copies of all the examples are available on the accompanying CD-ROM, or on examples are available on the accompanying CD-ROM, or on Ligne 32: Ligne 30: The other problem, which is increasingly rare nowadays, arises from The other problem, which is increasingly rare nowadays, arises from misconfiguration of a system that has been upgraded from LaTeX 2.09: misconfiguration of a system that has been upgraded from LaTeX 2.09: - the document uses the [times](https://​ctan.org/​pkg/​times) package, and the error appears + the document uses the [[ctanpkg>​times|times]] package, and the error appears - at \begin{document}.  The file search paths are wrongly set + at ''​\begin{document}''​.  The file search paths are wrongly set - up, and your \usepackage{times} has picked up a LaTeX 2.09 + up, and your ''​\usepackage{times}'' ​has picked up a LaTeX 2.09 version of the package, which in its turn has invoked another which version of the package, which in its turn has invoked another which has no equivalent in LaTeX2e. ​ The obvious solution is to rewrite 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 the paths so that LaTeX 2.09 packages are chosen only as a last resort - so that the startlingly simple LaTeX2e [times](https://​ctan.org/​pkg/​times) package will + so that the startlingly simple LaTeX2e [[ctanpkg>​times|times]] package will be picked up.  Better still is to replace the whole thing with be picked up.  Better still is to replace the whole thing with - something more modern still; current [psnfss](https://​ctan.org/​pkg/​psnfss) doesn'​t provide + something more modern still; current [[ctanpkg>​psnfss|psnfss]] doesn'​t provide - a [times](https://​ctan.org/​pkg/​times) package&​nbsp;&​mdash; ​the alternative [mathptmx](https://​ctan.org/​pkg/​mathptmx) + a [[ctanpkg>​times|times]] package ​--- the alternative [[ctanpkg>​mathptmx|mathptmx]] - incorporates ​Times-like mathematics,​ and a sans-serif face + incorporates ​''​Times''​-like mathematics,​ and a sans-serif face - based on Helvetica, but scaled to match Times + based on ''​Helvetica''​, but scaled to match ''​Times''​ text rather better. text rather better. + + ----- + + //Source:// [[faquk>​FAQ-nonum|"​Missing number, treated as zero"​]] + + {{htmlmetatags>​metatag-keywords=(LaTeX,​errors) + metatag-og:​title=("​Missing number, treated as zero") + metatag-og:​site_name=(FAQ LaTeX francophone) + }}