# LaTeX environment

143pages on
this wiki

An "environment" is a region of the document within which certain commands are valid, and certain processing is performed by the TeX processor. An environment begins with the begin command, and ends with the end command. Environments can be nested within one another; the begins and ends must match.

### ExampleEdit

This example shows nested environments.

 \begin{document} 

 ... document text begins here, in paragraph mode. \begin{split} ... math commands and symbols go here, in math mode \end{split} ... document text continues here, once again in paragraph mode \begin{align} ... math mode again ... \end{align} 

\end{document}