[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
A large apparatus is available that supports insertions of environments, that is `\begin{}' -- `\end{}' pairs.
AUCTeX is aware of most of the actual environments available in a specific document. This is achieved by examining your `\documentclass' 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, AUCTeX 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.
(C-c C-e) AUCTeX will prompt you for an environment to insert. At this prompt, you may press TAB or SPC to complete a partially written name, and/or to get a list of available environments. After selection of a specific environment AUCTeX may prompt you for further specifications.
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, AUCTeX will suggest the environment last
inserted or, as the first choice the value of the variable
LaTeX-default-environment
.
Default environment to insert when invoking `LaTeX-environment' first time.
If the document is empty, or the cursor is placed at the top of the document, AUCTeX will default to insert a `document' environment.
Most of these are described further in the following sections, and you may easily specify more. See section Customizing environments.
4.4.1 Equations | ||
4.4.2 Floats | ||
4.4.3 Itemize-like | ||
4.4.4 Tabular-like | ||
4.4.5 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.
(C-c ]) Insert an `\end' that matches the current environment.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
When inserting equation-like environments, the `\label' will have a default prefix, which is controlled by the following variables:
Prefix to use for `equation' labels.
Prefix to use for `eqnarray' labels.
Prefix to use for amsmath equation labels. Amsmath equations include `align', `alignat', `xalignat', `aligned', `flalign' and `gather'.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Figures and tables (i.e., floats) may also be inserted using AUCTeX. After choosing either `figure' or `table' in the environment list described above, you will be prompted for a number of additional things.
This is the optional argument of float environments that controls how
they are placed in the final document. In LaTeX this is a sequence
of the letters `htbp' as described in the LaTeX manual. The
value will default to the value of LaTeX-float
.
This is the caption of the float.
The label of this float. The label will have a default prefix, which is
controlled by the variables LaTeX-figure-label
and
LaTeX-table-label
.
Moreover, you will be asked if you want the contents of the float environment to be horizontally centered. Upon a positive answer a `\centering' macro will be inserted at the beginning of the float environment.
Default placement for floats.
Prefix to use for figure labels.
Prefix to use for table labels.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
In an itemize-like environment, nodes (i.e., `\item's) may be inserted using C-c LFD.
(C-c LFD) Close the current item, move to the next line and insert an appropriate `\item' for the current environment. That is, `itemize' and `enumerate' will have `\item ' inserted, while `description' will have `\item[]' inserted.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
When inserting Tabular-like environments, that is, `tabular' `array' etc., you will be prompted for a template for that environment. Related variables:
Default format string for array and tabular environments.
Default position string for array and tabular environments. If nil, act like the empty string is given, but don't prompt for a position.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
See section Adding Support for Environments, for how to customize the list of known environments.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] |
This document was generated by Super-User on December, 5 2007 using texi2html 1.76.