Re: Changing LaTeX files extension
Ralf Angeli <[email protected]>
| Newsgroups | gmane.emacs.auc-tex |
|---|---|
| Message-ID | <[email protected]> |
* [email protected] (2005-01-21) writes: > I want to give may LaTeX files the extension .latex instead of the > actual .tex, I want to caracterize my Plain TeX files. > > In my .emacs file I inserted > > (setq auto-mode-alist > (cons '("\\.latex$" . tex-mode) > auto-mode-alist)) > > but when I try to compile such a file, I have the following error [...] > the extension .tex is added to the name of the file and of course > the file doesn't exist, and I don't to prevent AUCTeX to add this > extension. Compilation should work if you add "latex" to `TeX-file-extensions'. But briefly testing this I already saw problems with parts of AUCTeX which rely on the value of `TeX-default-extension', e.g. the master file mechanisms. You could probably make it buffer-local and change its value via `LaTeX-mode-hook' but I haven't tested this. -- Ralf