emacs-devel
[Top][All Lists]
Advanced

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

Re: About LaTeX/TeX modes


From: Angelo Graziosi
Subject: Re: About LaTeX/TeX modes
Date: Sun, 7 Aug 2022 14:32:23 +0200 (CEST)

> Il 07/08/2022 13:11 Arash Esbati ha scritto:
> 
>  
> Angelo Graziosi writes:
> 
> > I notice that when in .tex documents one puts the statement 
> >
> > \PassOptionsToPackage{...}{...}
> >
> > before the 
> >
> > \documentclass{...}
> >
> > Emacs renders the buffers in TeX mode instead of LaTeX mode. This
> > results a bit annoying because documents that do not need the
> > '\PassOptionsToPackage' statement are classified as LaTeX-mode the
> > other as TeX-mode and in tabbar one has each time to switch between
> > these two groups.
> >
> > I am wondering if the fact I use  AUCTeX from Elpa is the cause of this..
> 
> AUCTeX expects the \documentclass macro early in the file.  I suggest
> you add the following at the end of your .tex file:
> 
> %%% Local Variables:
> %%% mode: latex
> %%% End:
> 
> and reload your file.  AUCTeX should start in LaTeX mode regardless of
> the macros it finds at the beginning of the file.

Yes, meanwhile I added 

%% -*- mode: LaTeX; -*-

at the beginning...



reply via email to

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