From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "T.V Raman" Newsgroups: gmane.emacs.devel Subject: Re: About LaTeX/TeX modes Date: Sun, 07 Aug 2022 06:31:53 -0700 Message-ID: References: <2025344680.2113516.1659863015529@mail1.libero.it> <868ro0b968.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=gb18030 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10520"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Angelo Graziosi , "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 15:32:58 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 1oKgOo-0002cZ-57 for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Aug 2022 15:32:58 +0200 Original-Received: from localhost ([::1]:42520 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oKgOm-0006vr-Pq for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Aug 2022 09:32:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50242) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKgNr-0005Dp-Lp for emacs-devel@gnu.org; Sun, 07 Aug 2022 09:31:59 -0400 Original-Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]:41707) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oKgNp-0000af-VK for emacs-devel@gnu.org; Sun, 07 Aug 2022 09:31:59 -0400 Original-Received: by mail-pj1-x102f.google.com with SMTP id t2-20020a17090a4e4200b001f21572f3a4so6919258pjl.0 for ; Sun, 07 Aug 2022 06:31:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc; bh=1IhFsAL6cHca5Y2Rr4i9ry1N+qL8kQ/BUrhQFnV+ZrQ=; b=fRF3WjfM4tancKmHzjs4qkuo5dGJ/tEvM02bGHCq0LVjH8HAhyTUjA7yESx9UTVbRC rikzOTVcppL0QMieDPIBlX8mTefb814bsMwsclHg92YGsL4e4AU6xMyOUJb4OeUJ8cN3 mu1N0ZqSkyLa7/0XErHXHyyfTQDyH39eddioGzXpsHpDJaWdNLr/i/LqMnXe8bKpIN4k Fa8mrxGUBn/pRP2931NV6U/uMp0NbKOJKqEb4y4Bnth7hE/mfT3zTWe9WgXdByhvhWJW ltjknt7NnRLpI+Bw8Ma6zyp37NvLKKWXYieXST7Vx9TKF1wGRN/a5VyUMW27Epc1+xMe jjog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc; bh=1IhFsAL6cHca5Y2Rr4i9ry1N+qL8kQ/BUrhQFnV+ZrQ=; b=qKfbgwX1nbjQXoJxxUgH4LP7INl1Z13cRk1BFyJrkiYCochoJu2+m+oaspvrNPAcG5 xOsxqCGDGMHftmt98q8k+Gqifrcp3AF1Hrazqzsv9dQAf8S4imHFakaj8bWs1DfwAqmE 71t+R5JnyHZYazj3llJkG/AXg08e94vaghhXw3HzEgopvfyGZYwFEOnCC0AV1YV4jtZ+ +SEJb3ZRK6Oei54FOdda7VWfflBO8GJxKov1RMyy6QlnclXMbTrJJBbje7hwhHF4pyfc cKlm5/pn/56vB0XKCKsbtIF7TP0nYlr7qzuJLV2ijvEI3py1KlQZuUc3EB3Ri8xesm6f 75Ww== X-Gm-Message-State: ACgBeo15yEOOtTRUDpRmMLi0NJ/n1YTiIZZG5NfSMWMhRk2ZTENYhB12 3XwXnucW1XJJ7DROjoHGDSfO2JcUD5xxjs3v X-Google-Smtp-Source: AA6agR6/kI9acyd/JhWygMrrfcsVW3eZKrAm6h/yw2sVXY6GSb3DEy1iGUcxtEeIkmnBw0wUcqsbYA== X-Received: by 2002:a17:90b:1a8f:b0:1f7:299d:9c08 with SMTP id ng15-20020a17090b1a8f00b001f7299d9c08mr6531344pjb.190.1659879115052; Sun, 07 Aug 2022 06:31:55 -0700 (PDT) Original-Received: from raman9 (c-24-4-174-65.hsd1.ca.comcast.net. [24.4.174.65]) by smtp.gmail.com with ESMTPSA id x13-20020a170902a38d00b0016be6a554b5sm6540698pla.233.2022.08.07.06.31.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Aug 2022 06:31:54 -0700 (PDT) In-Reply-To: <868ro0b968.fsf@gnu.org> (Arash Esbati's message of "Sun, 07 Aug 2022 13:11:11 +0200") Received-SPF: pass client-ip=2607:f8b0:4864:20::102f; envelope-from=raman@google.com; helo=mail-pj1-x102f.google.com X-Spam_score_int: -175 X-Spam_score: -17.6 X-Spam_bar: ----------------- X-Spam_report: (-17.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5 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:293201 Archived-At: Not quite. Getting auctex-mode defined modes to become operational feels more complex than it needs to be -- and I've never understood (30+ years and counting) as to why Emacs hasn't yet just made Auctex the default Tex editing package for emacs; I note that we have adopted far newer packages as the default in more recent times. Many years ago I made the following my default first line in .tex files: % foo.tex: -*- mode: LaTeX -*- and it works as in gets the mode from auctex -- but asking=20 describe-function about the mode still shows the one from the emacs install, not from auctex. latex-mode is defaliased to=20 LaTeX-mode in tex-mode.el Library is file /usr/local/share/emacs/29.0.50/lisp/textmodes/tex-mode.elc latex-mode is an autoloaded interactive compiled Lisp function in =A1=AEtex-mode.el=A1=AF. (latex-mode) Major mode for editing files of input for LaTeX. Makes $ and } display the characters they match. Makes " insert `` when it seems to be the beginning of a quotation, and '' when it appears to be the end; it inserts " only after a \. Use M-x tex-region to run LaTeX on the current region, plus the preamble copied from the top of the file (containing \documentstyle, etc.), running LaTeX under a special subshell. M-x tex-buffer does the whole buff= er. M-x tex-file saves the buffer and then processes the file. M-x tex-print prints the .dvi file made by any of these. M-x tex-view previews the .dvi file made by any of these. M-x tex-bibtex-file runs bibtex on the file of the current buffer. Use M-x tex-validate-buffer to check buffer for paragraphs containing mismatched $=A1=AFs or braces. Special commands: Key Binding C-j tex-handle-newline " tex-insert-quote C- tex-feed-input C-c C-s latex-split-block M-RET latex-insert-item C-c C-b tex-buffer C-c C-c tex-compile C-c C-e latex-close-block C-c C-f tex-file C-c TAB tex-bibtex-file C-c C-k tex-kill-job C-c C-l tex-recenter-output-buffer C-c RET tex-feed-input C-c C-o latex-insert-block C-c C-p tex-print C-c C-q tex-show-print-queue C-c C-r tex-region C-c C-t latex-insert-block C-c C-u tex-goto-last-unclosed-latex-block C-c C-v tex-view C-c / latex-close-block C-c ] latex-close-block C-c { tex-insert-braces C-c } up-list C-M-i ispell-complete-word Mode variables: latex-run-command Command string used by M-x tex-region or M-x tex-buffer. tex-directory Directory in which to create temporary files for LaTeX jobs run by M-x tex-region or M-x tex-buffer. tex-dvi-print-command Command string used by M-x tex-print to print a .dvi file. tex-alt-dvi-print-command Alternative command string used by M-x tex-print (when given a prefix argument) to print a .dvi file. tex-dvi-view-command Command string used by M-x tex-view to preview a .dvi file. tex-show-queue-command Command string used by M-x tex-show-print-queue to show the print queue that M-x tex-print put your job on. Entering Latex mode runs the hook =A1=AEtext-mode-hook=A1=AF, then =A1=AEtex-mode-hook=A1=AF, and finally =A1=AElatex-mode-hook=A1=AF. When t= he special subshell is initiated, =A1=AEtex-shell-hook=A1=AF is run. This function has :override advice: =A1=AETeX-latex-mode=A1=AF. Parent mode: =A1=AEtex-mode=A1=AF. Probably introduced at or before Emacs version 18. [back] --=20 Thanks, --Raman(I Search, I Find, I Misplace, I Research) =817=A94 Id: kg:/m/0285kf1 =950=DC8