About
Shop
LaTeX
Software
Books
Gallery
News
Contact
Blog
Settings
Account
Latest news 2024-10-15: New blog post: Tales for Our Times Book Launch.

B.25 Missing number, treated as zero

LaTeX is expecting a number. If your command takes more than one argument, check to make sure the arguments are in the correct order. For example, if you are using a minipage environment, you might have omitted the mandatory argument which specifies the width of the minipage, or you may have the optional arguments the wrong way round. The placement specifier should come first, followed by the height.

If you are using \addtocounter or \setcounter remember that the second argument must be a number, so if you want the value of a counter as the argument you must use \value. This error can be caused by, say,


\setcounter{exercise}{chapter}
instead of

\setcounter{exercise}{\value{chapter}}


This book is also available as A4 PDF or 12.8cm x 9.6cm PDF or paperback (ISBN 978-1-909440-00-5).

© 2012 Dickimaw Books. "Dickimaw", "Dickimaw Books" and the Dickimaw parrot logo are trademarks. The Dickimaw parrot was painted by Magdalene Pritchett.

Terms of Use Privacy Policy Cookies Site Map FAQs