auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX] Contribution


From: Ralf Angeli
Subject: Re: [AUCTeX] Contribution
Date: Tue, 13 May 2008 19:00:55 +0200

* Vincent Belaïche (2008-05-12) writes:

> By the way, you seem to be an AucTeX guru, and I have a minor problem 
> with AucTeX which I would like to explain to you:
>
> I have added the following customization in my init file :
>
> (add-hook
>  'LaTeX-mode-hook
>  (lambda () (interactive)
>    (dolist (v
>             '(
>               (94 "\\textsuperscript{" "}")
>               (95 "\\textsubscript{" "}")
>               (?m "\\(" "\\)" "" "")
>               (?v "\\(\\mmv {" "}\\)" "\\mmv {" "}")
>               )
>             )
>      (add-to-list 'TeX-font-list v)
>      )
>    )
>  )
>
> When I open a LaTeX file that has \documentclass[11pt,a4paper]{book} on 
> the first line and that is my master file, it works well (the 
> customization is there).
> But when I open a LaTeX file that is not the master file, and that has 
> some file local variable like this in the last line :
>
> %%% Local Variables:
> %%% mode: latex
> %%% TeX-master: "nameofthemasterfile.tex"
> %%% reftex-label-alist: '(AMSTeX)
> %%% End:
>
>
> Then the customization is not there.

`TeX-font-list' gets overwritten with the value of `LaTeX-font-list' in
LaTeX mode, so you better use something like

(eval-after-load "latex"
  '(progn
     (dolist (v '((94 "\\textsuperscript{" "}")
                  (95 "\\textsubscript{" "}")
                  (?m "\\(" "\\)" "" "")
                  (?v "\\(\\mmv {" "}\\)" "\\mmv {" "}")))
       (add-to-list 'LaTeX-font-list v))))

-- 
Ralf




reply via email to

[Prev in Thread] Current Thread [Next in Thread]