[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...
- About LaTeX/TeX modes, Angelo Graziosi, 2022/08/07
- Re: About LaTeX/TeX modes, Arash Esbati, 2022/08/07
- Re: About LaTeX/TeX modes,
Angelo Graziosi <=
- Re: About LaTeX/TeX modes, T.V Raman, 2022/08/07
- Re: About LaTeX/TeX modes, Arash Esbati, 2022/08/07
- Re: About LaTeX/TeX modes, T.V Raman, 2022/08/08
- Re: About LaTeX/TeX modes, Arash Esbati, 2022/08/08
- Re: About LaTeX/TeX modes, T.V Raman, 2022/08/08
- Re: About LaTeX/TeX modes, Per Starbäck, 2022/08/09
- Re: About LaTeX/TeX modes, Stefan Kangas, 2022/08/09
- Re: About LaTeX/TeX modes, T.V Raman, 2022/08/09
- Re: About LaTeX/TeX modes, Matthias Meulien, 2022/08/09
- Re: About LaTeX/TeX modes, Tassilo Horn, 2022/08/10