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

7.1 Using AUC TeX for European languages.

First you will need a way to write non-ASCII characters. You can either use macros, or teach TeX about the ISO character sets. I prefer the later, it has the advantage that the usual standard emacs word movement and case change commands will work.

With LaTeX2e, just add `\usepackage[latin1]{inputenc}'. With older LaTeX versions, try:

`isolatin1.sty'
Support for ISO 8859 Latin 1. Available by ftp from the host ftp.uni-stuttgart.de as `/pub/tex/macros/latex/contrib/misc/isolatin1.sty'.

`latin2.sty'
Support for ISO 8859 Latin 2. Available by ftp from the host ftp.uni-stuttgart.de as `/pub/tex/macros/latex/contrib/latin2.sty'.

To be able to display non-ASCII characters you will need an appropriate font and a version of GNU Emacs capable of displaying 8-bit characters. I believe all emacs versions except plain Emacs 18 are capable of this. For GNU Emacs 19, see section `European Display' in The GNU Emacs Editor.

A compromise is to use use an European character set when editing the file, and convert to TeX macros when reading and writing the files.

`iso-cvt.el'
Much like `iso-tex.el' but is bundled with Emacs 19.23 and later.

`x-compose.el'
Similar package bundled with new versions of XEmacs.

AUC TeX supports style files for several languages. Each style file may modify some AUC TeX 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 the `dk.sty' file. This requires parsing to be enabled, see section 6. Automatic Parsing of TeX files..

 
(add-hook 'TeX-language-dk-hook
          (function (lambda () (ispell-change-dictionary "danish"))))

The following style files are recognized.

`dk'
Runs style hook TeX-language-dk-hook.

`dutch'
Runs style hook TeX-language-nl-hook.

`german'
Runs style hook TeX-language-de-hook. Gives `"' word syntax and makes the " key insert a literal `"'.

`plfonts'
`plhb'
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.


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

This document was generated by Davide G. M. Salvetti on January, 18 2002 using texi2html