About
Shop
LaTeX
Software
Books
Gallery
News
Contact
Blog
Settings
Account
Latest news 2024-12-13: Ebook sale (12th December 2024 – 1st January 2025): cybercrime fiction short stories Unsocial Media and Smile for the Camera free; crime fiction short story The Briefcase free; short story noir crime fiction I’ve Heard the Mermaid Sing free; crime fiction novel The Private Enemy US$1.99; illustrated children’s story The Foolish Hedgehog US$0.99.

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