Übersicht Letzte Änderungen Neuigkeiten Suchen ElispSektion KurzAnleitung Impressum
Argentinien: Tag des Vaterlandes (Sturz des spanischen Vizekönigs 1810), Jordanien: Erlangung der Unabhängigkeit 1946

LatexEnc

latexenc.el by ArneJørgensen decides a CodingSystem? based on an inputenc declaration in LaTeX source. It’s builtin in Emacs 22 or you can get it from the author at

http://arnested.dk/filer/latexenc.el

An inputenc line is like

    \usepackage[koi8-r]{inputenc}

or

    \inputencoding{latin1}

latexenc.el operates via file-coding-system-alist and in Emacs 22 is enabled by default for .tex, .ltx, .dtx and .drv files.

If you’re writing some latex yourself you can always give a coding: cookie yourself, but latexenc.el is good for visiting other people’s latex which quite possibly don’t have an Emacs cookie.

If you’ve got a multi-file document you can give a TeX-master local variable, or anything tex-main-file understands, to have latexenc.el look in a top-level master file for inputenc, instead of needing it in every file. (Though as of Emacs 22.1 that doesn’t work from a TarMode or ArchiveMode member buffer.)

Latex allows the input encoding to be changed at any point, so in theory you can have different codings for different parts of a single file, but Emacs can’t cope with that, it needs the whole file in one coding.


CategoryTex CategoryInternationalization LaTeX