[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4.1 Insertion of Quotes, Dollars, and Braces

In TeX, literal double quotes `"like this"' are seldom used, instead two single quotes are used ```like this'''. To help you insert these efficiently, AUCTeX allows you to continue to press " to insert two single quotes. To get a literal double quote, press " twice.

Command: TeX-insert-quote count

(") Insert the appropriate quote marks for TeX.

Inserts the value of TeX-open-quote (normally ```') or TeX-close-quote (normally `''') depending on the context. With prefix argument, always inserts `"' characters.

User Option: TeX-open-quote

String inserted by typing " to open a quotation.

User Option: TeX-close-quote

String inserted by typing " to close a quotation.

User Option: TeX-quote-after-quote

Determines the behavior of ". If it is non-nil, typing " will insert a literal double quote. The respective values of TeX-open-quote and TeX-close-quote will be inserted after typing " once again.

If you include the style files `german' or `ngerman' TeX-open-quote and TeX-close-quote will be set to the values of LaTeX-german-open-quote and LaTeX-german-close-quote respectively. TeX-quote-after-quote will be set to the value of LaTeX-german-quote-after-quote. If you write texts which facilitate the style files mentioned before, you should customize those special variables instead of the standard variables.

Similarly you should customize LaTeX-csquotes-open-quote, LaTeX-csquotes-close-quote and LaTeX-csquotes-quote-after-quote if you use the `csquotes' package. The quotation characters will only be used if both variables--LaTeX-csquotes-open-quote and LaTeX-csquotes-close-quote--are non-empty strings. But then the `csquotes'-related values will take precedence over the `(n)german'-related ones.

In AUCTeX, dollar signs should match like they do in TeX. This has been partially implemented, we assume dollar signs always match within a paragraph. The first `$' you insert in a paragraph will do nothing special. The second `$' will match the first. This will be indicated by moving the cursor temporarily over the first dollar sign. If you enter a dollar sign that matches a double dollar sign `$$' AUCTeX will automatically insert two dollar signs. If you enter a second dollar sign that matches a single dollar sign, the single dollar sign will automatically be converted to a double dollar sign.

Command: TeX-insert-dollar arg

($) Insert dollar sign.

Show matching dollar sign if this dollar sign end the TeX math mode. Ensure double dollar signs match up correctly by inserting extra dollar signs when needed.

With optional arg, insert that many dollar signs.

To avoid unbalanced braces, it is useful to insert them pairwise. You can do this by typing C-c {.

Command: TeX-insert-braces

(C-c {) Make a pair of braces and position the cursor to type inside of them.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]

This document was generated by Super-User on December, 5 2007 using texi2html 1.76.