From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.devel Subject: Re: About LaTeX/TeX modes Date: Sun, 7 Aug 2022 14:32:23 +0200 (CEST) Message-ID: <521925528.2256491.1659875543286@mail1.libero.it> References: <2025344680.2113516.1659863015529@mail1.libero.it> <868ro0b968.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17733"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "emacs-devel@gnu.org" To: Arash Esbati Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Aug 07 14:33:10 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oKfSv-0004OM-RG for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Aug 2022 14:33:09 +0200 Original-Received: from localhost ([::1]:34366 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oKfSu-0003uH-Bb for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Aug 2022 08:33:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40566) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKfSI-0003AI-3U for emacs-devel@gnu.org; Sun, 07 Aug 2022 08:32:30 -0400 Original-Received: from smtp-34-i2.italiaonline.it ([213.209.12.34]:40596 helo=libero.it) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKfSF-0006R7-Or for emacs-devel@gnu.org; Sun, 07 Aug 2022 08:32:29 -0400 Original-Received: from oxapps-10-057.iol.local ([10.101.8.67]) by smtp-34.iol.local with ESMTPA id KfSBol3pcMK28KfSBoH60u; Sun, 07 Aug 2022 14:32:24 +0200 x-libjamoibt: 1601 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=libero.it; s=s2021; t=1659875544; bh=MZ8XvRafNOFdU8g5qshMJOSlTxPWoioz8SbRqn6dl0g=; h=From; b=EZbJbp3hz3Sjum0weT9sJ2tJpk16Q21tyo+4xdSQg3GTgs0q4eifIKo/myIqr+9IC Y0QxFKRiOZPUoCVStZjjUuMHuJBygjVXapgA+pWJyRfp6tICODfNCiS5RfNW3atMUx +MiS7EzAt4PhpXoJEKpe66Bx5SwEi7k3DpHDyZTH4ghbAavecquAh/uHg+sjiwnWdR sFppOUY8L9RSewJ9BtMH2tgTAyeIw1W/eaqkVw8nvfLmrsv+bSAlGZILMSpchgrQZ4 GoRNW6aMlHSi7S0cd73S/OBUQOwd7a5kOLF+U/wmqZqlm4J3NOCfnqwyPxEXJJe+Oy g/tLN23KD305A== X-CNFS-Analysis: v=2.4 cv=a6H1SWeF c=1 sm=1 tr=0 ts=62efb0d8 cx=a_exe a=mBC0so+QzEBPi7Y13Aki4w==:117 a=gfrQqTawV2cA:10 a=IkcTkHD0fZMA:10 a=UDYmob_9xaIA:10 a=7m3O3BKHZoL96QNgUHAA:9 a=QEXdDO2ut3YA:10 In-Reply-To: <868ro0b968.fsf@gnu.org> X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer v7.10.5-Rev45 X-Originating-IP: 79.12.212.77 X-Originating-Client: open-xchange-appsuite x-libjamsun: BQppS/+xffbK96cAGsUZi4jsc82JO5Q3 x-libjamv: B7EK3nClHpI= X-CMAE-Envelope: MS4xfNgReFhnQQT6J9pCtFpCorl7BCwkouEKzCpjIcEkCCkvGHtK2tBZPhnuxfkff/eMjeTRLY5TPihYPtizQXSZZCqvS5gXikv+vlnmJ1yrW6uQ/YWlFF2T wKNH6dYpQOfhKSK2fZDwvo1dk7I937zVlTnUVRrsO+bM3KBa7JwmxFCimzUG+gmmzojBrDWwsHxTfQBJ+95bU7aqMqmAqfuvcLQ3HsgHoZzpcx9W62iQZlm4 Received-SPF: pass client-ip=213.209.12.34; envelope-from=angelo.g0@libero.it; helo=libero.it X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:293193 Archived-At: > 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...