A large apparatus is available that supports insertions of environments, that is `\begin{}' -- `\end{}' pairs.
AUC TeX is aware of most of the actual environments available in a specific document. This is achieved by examining your `\documentstyle' command, and consulting a precompiled list of environments available in a large number of styles.
You insert an environment with C-c C-e, and select an environment type. Depending on the environment, AUC TeX may ask more questions about the optional parts of the selected environment type. With C-u C-c C-e you will change the current environment.
If the optional argument arg is not-nil (i.e. you have given a prefix argument), the current environment is modified and no new environment is inserted.
As a default selection, AUC TeX will suggest the environment last
inserted or, as the first choice the value of the variable
LaTeX-default-environment
.
If the document is empty, or the cursor is placed at the top of the document, AUC TeX will default to insert a `document' environment.
Most of these are described further in the following sections, and you may easily specify more, as described in `Customizing environments'.
You can close the current environment with C-c ], but we suggest that you use C-c C-e to insert complete environments instead.