[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
AUCTeX supports style files for several languages. Each style file may modify AUCTeX to better support the language, and will run a language specific hook that will allow you to for example change ispell dictionary, or run code to change the keyboard remapping. The following will for example choose a Danish dictionary for documents including ‘\usepackage[danish]{babel}’. This requires parsing to be enabled, see Parsing Files.
(add-hook 'TeX-language-dk-hook (lambda () (ispell-change-dictionary "danish"))) |
The following style files are recognized:
Runs style hook TeX-language-pt-br-hook
. Gives ‘"’ word
syntax, makes the <"> key inserts ‘``’ or ‘''’ depending on
context. Typing <"> twice will insert a literal ‘"’. Typing
<-> twice will insert ‘"=’, three times ‘--’.
Runs style hook TeX-language-bg-hook
. Gives ‘"’ word syntax,
makes the <"> key insert a literal ‘"’. Typing <"> twice
will insert ‘"`’ or ‘"'’ depending on context. Typing <->
twice will insert ‘"=’, three times ‘--’.
Runs style hook TeX-language-cz-hook
. Pressing <"> will
insert ‘\uv{’ and ‘}’ depending on context.
Runs style hook TeX-language-dk-hook
. Pressing <"> will
insert ‘"`’ and ‘"'’ depending on context. Typing <->
twice will insert ‘"=’, i.e. a hyphen string allowing hyphenation
in the composing words.
Runs style hook TeX-language-nl-hook
.
Runs style hook TeX-language-en-hook
.
Runs style hook TeX-language-fr-hook
. Pressing <"> will
insert ‘\og’ and ‘\fg’ depending on context. Note that the
language name for customizing TeX-quote-language-alist
is
‘french’.
Runs style hook TeX-language-de-hook
. Gives ‘"’ word
syntax, makes the <"> key insert a literal ‘"’. Pressing the
key twice will give you opening or closing German quotes (‘"`’ or
‘"'’). Typing <-> twice will insert ‘"=’, three times
‘--’.
Runs style hook TeX-language-is-hook
. Gives ‘"’ word syntax,
makes the <"> key insert a literal ‘"’. Typing <"> twice
will insert ‘"`’ or ‘"'’ depending on context. Typing <->
twice will insert ‘"=’, three times ‘--’.
Runs style hook TeX-language-it-hook
. Pressing <"> will
insert ‘"<’ and ‘">’ depending on context.
Runs style hook TeX-language-pl-hook
. Gives ‘"’ word syntax
and makes the <"> key insert a literal ‘"’. Pressing <">
twice will insert ‘"`’ or ‘"'’ depending on context.
Runs style hook TeX-language-pl-hook
. Makes the <"> key
insert a literal ‘"’. Pressing <"> twice will insert ‘,,’
or ‘''’ depending on context.
Runs style hook TeX-language-pt-hook
. Gives ‘"’ word syntax,
makes the <"> key inserts ‘"<’ or ‘">’ depending on context.
Typing <"> twice will insert a literal ‘"’. Typing <-> twice
will insert ‘"=’, three times ‘--’. Note that the language name
for customizing TeX-quote-language-alist
is ‘portuguese’.
Runs style hook TeX-language-sk-hook
. Pressing <"> will
insert ‘\uv{’ and ‘}’ depending on context.
Runs style hook TeX-language-sv-hook
. Pressing <"> will
insert ‘''’. Typing <-> twice will insert ‘"=’, three
times ‘--’.
Replacement of language-specific hyphen strings like ‘"=’ with dashes does not require to type <-> three times in a row. You can put point after the hypen string anytime and trigger the replacement by typing <->.
In case you are not satisfied with the suggested behavior of quote and
hyphen insertion you can change it by customizing the variables
TeX-quote-language-alist
and
LaTeX-babel-hyphen-language-alist
respectively.
Used for overriding the default language-specific quote insertion behavior. This is an alist where each element is a list consisting of four items. The first item is the name of the language in concern as a string. See the list of supported languages above. The second item is the opening quotation mark. The third item is the closing quotation mark. Opening and closing quotation marks can be specified directly as strings or as functions returning a string. The fourth item is a boolean controlling quote insertion. It should be non-nil if if the special quotes should only be used after inserting a literal ‘"’ character first, i.e. on second key press.
Used for overriding the behavior of hyphen insertion for specific languages. Every element in this alist is a list of three items. The first item should specify the affected language as a string. The second item denotes the hyphen string to be used as a string. The third item, a boolean, controls the behavior of hyphen insertion and should be non-nil if the special hyphen should be inserted after inserting a literal ‘-’ character, i.e. on second key press.
The defaults of hyphen insertion are defined by the variables
LaTeX-babel-hyphen
and LaTeX-babel-hyphen-after-hyphen
respectively.
String to be used when typing <->. This usually is a hyphen alternative or hyphenation aid provided by ‘babel’ and the related language style files, like ‘"=’, ‘"~’ or ‘"-’.
Set it to an empty string or nil in order to disable language-specific hyphen insertion.
Control insertion of hyphen strings. If non-nil insert normal hyphen on
first key press and swap it with the language-specific hyphen string
specified in the variable LaTeX-babel-hyphen
on second key press.
If nil do it the other way round.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document was generated on February 20, 2022 using texi2html 1.82.