TeXpad

LaTeX error: Environment … undefined

\begin{name} starts an environment, and LaTeX only knows the ones defined by the document class, a loaded package, or \newenvironment. Any other name stops the compile with this error.

! LaTeX Error: Environment itemise undefined.

Try it: this example has the error

Press Fix it in the error box, and it compiles to a PDF. What pdfTeX printed for it:

! LaTeX Error: Environment itemise undefined.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.3 \begin{itemise}
or paste your own document

Ready. Press Compile (or Ctrl/Cmd + Enter).

Open in the full editor →

Common causes

How to fix it

  1. Correct the name in both \begin{…} and \end{…}. TeXpad suggests the closest known environment.
  2. Load the package that defines it. For align, add \usepackage{amsmath}; TeXpad offers this fix automatically.
  3. For theorems, add \newtheorem{theorem}{Theorem} in the preamble.

Related errors