From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: Re: tex-mode.el Date: Tue, 9 Feb 2021 21:26:41 +0100 Message-ID: References: <878s7xkvgi.fsf@zoho.eu> <87im71jeew.fsf@zoho.eu> <20210209201315.GD30277@tuxteam.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14700"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org, moasenwood@zoho.eu To: tomas@tuxteam.de Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 09 21:31:21 2021 Return-path: Envelope-to: geh-help-gnu-emacs@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 1l9ZfM-0003je-Qt for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 09 Feb 2021 21:31:20 +0100 Original-Received: from localhost ([::1]:57622 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9ZfL-0002RQ-RN for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 09 Feb 2021 15:31:19 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42880) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9Zb1-0006uK-6e for help-gnu-emacs@gnu.org; Tue, 09 Feb 2021 15:26:51 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:55197) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9Zaz-00084L-9P for help-gnu-emacs@gnu.org; Tue, 09 Feb 2021 15:26:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1612902401; bh=V/WetWVU9ZWXqc2SpWJ270l2i6b7w7wBLjzsuoMh774=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=UjnmnVnq8fYRFZnioCXfFtfiGS45Ub4Bt5w75HJTOfWN/JJj7lCOwCiMQb5wRb68F /a1ox8RdbcwWfHPT0n2CznTlJQsTildeaN4BtzViFkC1VVhepUXIyS9IQOxAClqiwW LHgYtiK7EkHTy3N2vBwo4TeqRm+VYOMqRGV517Tk= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs05.server.lan [172.19.170.173]) (via HTTP); Tue, 9 Feb 2021 21:26:41 +0100 Importance: normal Sensitivity: Normal In-Reply-To: <20210209201315.GD30277@tuxteam.de> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:UP4LaOmAg1AR9T59HqeVNmcdQg7HZMna77NPN45L8nOdqdnqMRJSD0rmg75O1i4SC741k 2AKRLsOVIOgAp7fOvX6sxJtWevSVbVQTZVfW0i97f8L5Yak9xQWoY51GHIntxPP35+Zz8OjvuAQW 47201BJnstofbZax2VDBd/KJ1BtU1cJO2dDNSW6ABR5/iDan529hQq7ArU3APkng+O7wRtaSwAsK oldkSWJ+IZZ0BJi4BiripPX/T18/naQU0xk1cAWAcm2sDbvPnrGMqWEQV+BWUkJCETFjCk51i20b XM= X-UI-Out-Filterresults: notjunk:1;V03:K0:5XlltOABkvk=:rsSF1ZObP515BLRo3T0Z3h yL50MlzZKJDuKNUeCKkYngWo+iCXPvri6xO7dq1T4iBIHl995Jy/mwxTu5n0KFY9BXHZuith0 7550SIzy9jy2cG20KZVTE8dQEa4Mdai1P0AX4FqAEhB2zvpqN2S+zkQqxDX8RclJqNu67QoMh TaqTgwqdiqtvWYa1Uivvyw1/SH+tT48Uqj4vnAQNGV0G1iI7Rz/vplZQegxTAMSkRXjb5R4N2 DxwJlOIrReaE6JO/sa4Yyy0utMI5rZ4RKBNx1RvnQojtcjSwB3zK6/4PEdd5DZRJsDJyv6c+d 3Nw3k10wW2hqmb8YzBCH7VIauuFDtVX6g6N42ObT1m1uPB+KgP1pDqJmLLKvhZWHfOAt2hGhd o/bTfSPZUi97dxDniEEMvjIM64QsnrjH1RAONAmVaE3ekL4ZJxEnzADjAj91xOh4izo4QPFbt na+dz/BqNzWxqMZjHgrAH1IOlVAqnFsxarLIVg5zHO+7PVTUGmwb/0upB/WvgZv27WTd+nJPT c7x2a6kfYHa+wxOZVXM22fO0n9+CxjQhZ9QB+AFLDWugQ9pupxvHrx9XHi6guHYuGD9ldO+dz e4KemdQe0IiUs= Received-SPF: pass client-ip=212.227.15.19; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:127737 Archived-At: > Sent: Wednesday, February 10, 2021 at 8:13 AM > From: tomas@tuxteam.de > To: "Christopher Dimech" > Cc: moasenwood@zoho.eu, help-gnu-emacs@gnu.org > Subject: Re: tex-mode.el > > On Tue, Feb 09, 2021 at 07:26:14PM +0100, Christopher Dimech wrote: > > > > > > > > > Sent: Wednesday, February 10, 2021 at 6:15 AM > > > From: "Emanuel Berg via Users list for the GNU Emacs text editor" > > > To: help-gnu-emacs@gnu.org > > > Subject: Re: tex-mode.el > > > > > > Christopher Dimech wrote: > > > > > > > Have been trying to disable the "suscript" option > > > > > > OK, one step at a time, what option is that, exactly? > > > > > > And what does it do that you don't want? > > > > tex-font-lock-match-suscript matches superscripts (matching part follo= wing ^) > > and subscripts (matching part following _). An example is "\alpha^i" = and > > "\beta_j". > > > > Then "tex-font-lock-suscript" elevates the letter "i" and lowers the l= etter > > "j". > > > > I want to have a function that displays the text normally, without hav= ing > > to change the major mode. > > Perhaps you're better off by tweaking those variables: > > (defcustom tex-font-script-display '(-0.2 0.2) > "How much to lower and raise subscript and superscript content. > This is a list of two floats. The first is negative and > specifies how much subscript is lowered, the second is positive > and specifies how much superscript is raised. Heights are > measured relative to that of the normal text." > :group 'tex > :type '(list (float :tag "Subscript") > (float :tag "Superscript")) > :version "23.1") > > (defined in tex-mode.el) -- try '(0.0 0.0) to lower/raise sub-/superscri= pts by > zero, and > > (defcustom tex-suscript-height-ratio 0.8 > "Ratio of subscript/superscript height to that of the preceding te= xt. > In nested subscript/superscript, this factor is applied repeatedly, > subject to the limit set by `tex-suscript-height-minimum'." > :type 'float > :group 'tex > :version "23.1") > > (likewise) -- try 0.0 to keep the size equal to the main font. Something > like > > (setq tex-font-script-display '(0.0 0.0)) > (setq tex-suscript-height-ratio 1.0) > > or its custom equivalent (maybe via the customize interface?) Have tried your suggestion, but once the typeface is activated, re-setting tex-font-script-display and tex-suscript-height-ratio does not revert to the original (i.e. equivalent to disabling the tex major made). > Cheers > - t >