GeneralEnumeration Errors

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
rong
Posts: 3
Joined: Tue Jul 07, 2009 2:40 pm

Enumeration Errors

Post by rong »

I don't know why, but in Texnet when I have an enumeration I get an error:

! Missing number, treated as zero.
<to be read again>
\relax

The code is simple, but will not work? Am I missing something? Or do I need to do something in configuration?

Thanks, this really puzzles me.
the code

Code: Select all

\documentclass{article}

\begin{document}
  this is a test of an enumeration
  \begin{enumerate}
    \item this is item 1
    \item this is item 2
  \end{enumerate}
\end(document)

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Enumeration Errors

Post by frabjous »

I don't know if that's your problem, but the last line should be \end{document} not \end(document).
rong
Posts: 3
Joined: Tue Jul 07, 2009 2:40 pm

Re: Enumeration Errors

Post by rong »

Thanks, I fixed that typo, but it is not the problem.

According to Lamport's book on LaTeX, this error occurs when LaTeX is expecting but not finding a number as an argument. But, I should be able to have an enumeration without defining a counter?
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Enumeration Errors

Post by frabjous »

The code:

Code: Select all

\documentclass{article}
\begin{document}
this is a test of an enumeration
\begin{enumerate}
\item this is item 1
\item this is item 2
\end{enumerate}

\end{document}
does not give me any errors when I try to compile it. Are you sure there isn't anything wrong with your latex installation? Or something wrong with your copy of article.cls? Do you get a similar error with any article document? What version of latex are you using? (And, to be clear, you are using latex and not pdflatex or conTeXt or anything else, right?) (I have to confess I don't know what "texnet" is.)
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Enumeration Errors

Post by localghost »

rong wrote:Thanks, I fixed that typo, but it is not the problem. [...]
Attach the complete log file produced by this simple example to your next post by uploading it to the server.


Best regards and welcome to the board
Thorsten
rong
Posts: 3
Joined: Tue Jul 07, 2009 2:40 pm

Re: Enumeration Errors

Post by rong »

Thanks for your help. I fixed the problem by removing and then reinstalling Miktek. Now it works. I don't understand what was wrong with the Miktek installation, but it works.
Post Reply