[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: auto-coding-function for LaTeX
From: |
Arne Jørgensen |
Subject: |
Re: auto-coding-function for LaTeX |
Date: |
Tue, 07 Dec 2004 01:53:46 +0100 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) |
Arne Jørgensen <address@hidden> Nov 9, 2004:
> I have written a function (latex-auto-coding-function) that determines
> a LaTeX files encoding from i.e. a
>
> \usepackage[latin1]{inputenc}
>
> line (if it is used).
I know I've been silent about this for a while, but I've been busy and
had only limited time to weed out some bugs ...
I received some useful comments on the code. Here is a highlight of
what has changed:
- the function is added to `file-coding-system-alist' for the
extensions .tex .ltx .dtx and .drv (where you will normally find
inpuenc stuff)
- the encoding is search for in the LaTeX commands
\inputencoding{...} and \usepackage[...]{inputenc} (in that order)
- if the above command is in a comment (%) it is ignored
- if the encoding is not found we load code-pages and tries if that
make things better
Since you are all working hard on getting Emacs ready for release I
know it will probably not be added to cvs so I put it up on my website
<http://arnested.dk/filer/latexenc.el> and am just writing here to say
thanks for the comments.
Kind regards,
--
Arne Jørgensen
Gammel Kongevej 7, 1. th., DK-1610 Copenhagen V, Denmark
mobile: +45 21 65 01 13
email: address@hidden, <http://arnested.dk/>
latexenc.el
Description: Determine the encoding of a LaTeX buffer
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: auto-coding-function for LaTeX,
Arne Jørgensen <=