help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: automatic setting of mode


From: ?manu*
Subject: Re: automatic setting of mode
Date: Sat, 4 Jul 2009 04:58:18 -0700 (PDT)
User-agent: G2/1.0

On 3 Lug, 23:06, Peter Dyballa <Peter_Dyba...@Web.DE> wrote:
> Am 03.07.2009 um 16:56 schrieb ?manu*:
>
> > Now I wonder If there is a similar command to get the following:
>
> > 1. automatically issuing the command
> > M-x tex-pdf
> > which tells emacs to compile a LaTeX file with pdflatex.
>
> I don't know what the simple built-in TeX-mode accepts, for AUCTeX  

Yes, I use AUCTeX

> you can put among its block of (file) local variables:
>
>         %%% TeX-PDF-mode: t

This didn't worked for me. But using your snippet code I found this
discussion which was useful to me:

http://osdir.com/ml/emacs.auctex.general/2006-01/msg00002.html

> > 2. automatically issuing the command
> > M-x set-buffer-file-coding-system utf-8
> > telling emacs that the file is encoded in utf8
>
> LaTeX's Unicode or UTF-8 encoding support is very limited (maybe 1 %  
> of the BMP) (and complicated to use). For a TeX file you would need  
> to use % as comment character. In the file's header it would be:
>
>         coding: utf-8;

Thank you so much. Actually this I need it in an HTML file not TeX. It
seems to me that it works.

E.



reply via email to

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