LaTeX Error: Lonely \item--perhaps a missing list environment
An \item appears outside any list: the \begin{itemize} or \begin{enumerate} is missing, or the list was closed too early.
Help centre › LaTeX errors › Document structure · Error: the build stops or the output is wrong
What the log says
! LaTeX Error: Lonely \item--perhaps a missing list environment.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.4 \item F
irst pointWhat it means
\item has a meaning only inside a list environment such as itemize, enumerate or description. LaTeX found one outside any list, so it does not know what kind of item to make.
Causes and fixes
Most common first. Each example is a complete document; the first fails with this message, the second is the same document fixed.
1. The list environment is missing
Items written straight into the text, or a \begin{itemize} deleted or commented out. Wrap the items in \begin{itemize} … \end{itemize} (or enumerate for numbers).
\documentclass{article}
\begin{document}
Our contributions:
\item First point
\item Second point
\end{document}\documentclass{article}
\begin{document}
Our contributions:
\begin{itemize}
\item First point
\item Second point
\end{itemize}
\end{document}2. The list was closed before its last item
An \end{itemize} placed too early leaves the remaining items outside. Move the \end below the last \item.
\documentclass{article}
\begin{document}
\begin{enumerate}
\item Collect samples
\end{enumerate}
\item Dry them
\end{document}\documentclass{article}
\begin{document}
\begin{enumerate}
\item Collect samples
\item Dry them
\end{enumerate}
\end{document}3. \item inside a table cell or a box
A tabular cell is not part of the list around it. To list items in a cell, open a list inside the cell within a \parbox or a p{…} column, or use line breaks instead.
In Manulyx
The editor shows the error beside the \item, with an explanation.
Write in Manulyx for free · Journal templates
More in document structure
- LaTeX Error: Missing \begin{document}Something that prints text sits above \begin{document}, or that line is missing. Only settings belong in the preamble; find the stray text and move it.
- LaTeX Error: Can be used only in preambleA preamble-only command such as \usepackage or \documentclass appears after \begin{document}. Move it above \begin{document}.
- LaTeX Error: \include cannot be nestedA file loaded with \include contains another \include. Only the main file may \include; inside an included file use \input instead.
- Package hyperref Warning: Token not allowed in a PDF string (<encoding>):A heading contains math or a command that cannot go into a PDF bookmark. The page is fine; give the bookmark plain text with \texorpdfstring.
Every example on this page was compiled with pdfLaTeX to check that it fails and is fixed as described. All LaTeX errors