inm501@csc.anu.edu.au (03/29/91)
I am leaning how to use LaTeX. So far, it has been a confusing experience. I modify the example given in the LaTeX book to get a numbered list using OzTex-LateX. It comes back with: "! Something's wrong--perhaps a missing \item" I can't see what is wrong in the following document. Can someone give me a hand? Thanks. Ida --------------------------------------------- \documentstyle[12pt]{report} \begin{document} \begin{enumerate} You have {\em three} ways of doing equations. \item If you want your equations numbered you type: \begin{equation} x^{2}+y_{2k} = \alpha \end{equation} \item If you do not want to number your equations: \[x^{2}+y_{2k} = \Gamma\] \item If you want to include the equation as a part of your text: \(x+y = 7\) \end{enumerate} \end{document} --------------------------------------- The error messages are below: This is TeX, Version 3.0 (preloaded format=lplain 90.9.16) 29 MAR 1991 11:19 **&LaTeX test.tex (test.tex LaTeX Version 2.09 <13 Jun 1989> (:TeX-inputs:report.sty Document Style `report' <24 May 89>. (:TeX-inputs:rep12.sty) \descriptionmargin=\dimen99 \c@part=\count78 \c@chapter=\count79 \c@section=\count80 \c@subsection=\count81 \c@subsubsection=\count82 \c@paragraph=\count83 \c@subparagraph=\count84 \c@figure=\count85 \c@table=\count86 (:TeX-inputs:titlepage.sty)) No file test.aux. LaTeX error. See LaTeX manual for explanation. Type H <return> for immediate help. ! Something's wrong--perhaps a missing \item. \@latexerr ...diate help.}\errmessage {#1} \addpenalty ... \fi \fi \else \@noitemerr \fi \@item ...e \addpenalty \@beginparpenalty \addvspace \@topsep \addvsp... <to be read again> I l.8 I f you want your equations numbered you type: ? x Here is how much of TeX's memory you used: 155 strings out of 1960 1483 string characters out of 13235 26403 words of memory out of 53586 2109 multiletter control sequences out of 2500 18997 words of font info for 72 fonts, out of 27000 for 100 14 hyphenation exceptions out of 307 12i,0n,15p,155b,75s stack positions out of 200i,40n,60p,500b,600s No pages of output.
ogawa@orion.arc.nasa.gov (Arthur Ogawa) (03/29/91)
In article <1991Mar29.112444.1@csc.anu.edu.au> inm501@csc.anu.edu.au writes: | "! Something's wrong--perhaps a missing \item" | | I can't see what is wrong in the following document. Can someone |give me a hand? |\documentstyle[12pt]{report} |\begin{document} | |\begin{enumerate} |You have {\em three} ways of doing equations. | |\item Look no further! Change the above to: \documentstyle[12pt]{report} \begin{document} You have {\em three} ways of doing equations. \begin{enumerate} \item Note that text appearing after the \begin{enumerate} but before the first \item is illegal. Keep at it! Arthur Ogawa Internet: ogawa@orion.arc.nasa.gov Ph: 1/415/691-1126 TeX consultant AppleLink: ogawa FAX:1/415/962-1969