From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: tex-mode.el Date: Tue, 9 Feb 2021 21:13:15 +0100 Message-ID: <20210209201315.GD30277@tuxteam.de> References: <878s7xkvgi.fsf@zoho.eu> <87im71jeew.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="DiL7RhKs8rK9YGuF" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6101"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/1.5.21 (2010-09-15) Cc: help-gnu-emacs@gnu.org, moasenwood@zoho.eu To: Christopher Dimech Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 09 21:38:24 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 1l9ZmC-0001Ut-E1 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 09 Feb 2021 21:38:24 +0100 Original-Received: from localhost ([::1]:42450 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9ZmB-0008Rt-El for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 09 Feb 2021 15:38:23 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39966) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9ZNx-0000zO-Ka for help-gnu-emacs@gnu.org; Tue, 09 Feb 2021 15:13:21 -0500 Original-Received: from mail.tuxteam.de ([5.199.139.25]:54201) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.90_1) (envelope-from ) id 1l9ZNu-0002Pd-Re for help-gnu-emacs@gnu.org; Tue, 09 Feb 2021 15:13:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:Date; bh=tGcIkcKGk6EUuOftD7A9bsURyp/l+pdkYWADy0tz3KQ=; b=RdSNS+q5QcFri4B6tmi0/BhedkP48b6N2XYErxIs/iiz/GABVPtrfk9tithQ5AESJ1VlVig5Ey7+dyhbK32i312c6ZB88+qQeOuiQX6u76cdARUb7bqhvAb497QqGebLs766Xg/c1LusnCNGp4oNM5GMfFvfvfjZ9YiqB4MomjrEEjNfF37bzQMGeV3vvClPTuv3yXCnKHrBnm9j/fmanmP6y7+8koXSU+Ew30ZLuAwg8iAU1dbmncrxKNKcCZzO/sCQbETNldB7B/T8CHDLP0+G9QA9RjpH5AIPigkKekG/0BCk4N0RixtqpMhzjrKzxiVGAYje11ydcqRw3HUTrA==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1l9ZNr-00051M-G7; Tue, 09 Feb 2021 21:13:15 +0100 Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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:127739 Archived-At: --DiL7RhKs8rK9YGuF Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 09, 2021 at 07:26:14PM +0100, Christopher Dimech wrote: >=20 >=20 >=20 > > 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? >=20 > tex-font-lock-match-suscript matches superscripts (matching part followin= g ^) > and subscripts (matching part following _). An example is "\alpha^i" and > "\beta_j". >=20 > Then "tex-font-lock-suscript" elevates the letter "i" and lowers the lett= er > "j". >=20 > I want to have a function that displays the text normally, without having > 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-/superscripts= by zero, and (defcustom tex-suscript-height-ratio 0.8 "Ratio of subscript/superscript height to that of the preceding text. 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?) Cheers - t --DiL7RhKs8rK9YGuF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAmAi7NsACgkQBcgs9XrR2kZSmgCfYeZfBO8q9wONCiwer45C1AJZ NwYAn0imkKNhw9FDkPdeg5nzQzE2fR64 =wbaP -----END PGP SIGNATURE----- --DiL7RhKs8rK9YGuF--