LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

 Options: Use Forum View Use Monospaced Font Show Text Part by Default Condense Mail Headers Message: [<< First] [< Prev] [Next >] [Last >>] Topic: [<< First] [< Prev] [Next >] [Last >>] Author: [<< First] [< Prev] [Next >] [Last >>]

Hi!

It should be quite easy to find out where things got wrong.

You could also make it a habit to always type
the begin{itemize} and the end{itemize} at the same time,
which should reduce the problem.

You could also try to use the short commands in Emacs,
which will probably type both parts at the same time.

Yours,
Magnus Erixon

> When LaTeX encounters an error, we see something like the following:
>
>      ! LaTeX Error: \begin{itemize} on input line 21 ended by \end{document}.
>
> However, I typically have many "\input" statements, so it is often annoying
> to figure out which file contains the offending line.  (In an emacs shell,
> I routinely type "\C-u\C-r([a-z]" to get back to the last opened file, but
> this is only right some of the time.)  It seems it should not be hard to
> improve the error message to say instead
>
>    ! LaTeX Error: \begin{itemize} on input line 21 in foo.tex ended by
> \end{document}.
>
> As an optimization, if only one user file has been seen, "in foo.tex" could
> be suppressed.
>