unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Christopher Dimech <dimech@gmx.com>
To: tomas@tuxteam.de
Cc: help-gnu-emacs@gnu.org, moasenwood@zoho.eu
Subject: Re: tex-mode.el
Date: Tue, 9 Feb 2021 21:26:41 +0100	[thread overview]
Message-ID: <trinity-1968824c-b9ef-44b4-87a8-72ddd987b2fc-1612902401471@3c-app-mailcom-bs05> (raw)
In-Reply-To: <20210209201315.GD30277@tuxteam.de>


> Sent: Wednesday, February 10, 2021 at 8:13 AM
> From: tomas@tuxteam.de
> To: "Christopher Dimech" <dimech@gmx.com>
> 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" <help-gnu-emacs@gnu.org>
> > > 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 following ^)
> > 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 letter
> > "j".
> >
> > 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?)

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
>



  reply	other threads:[~2021-02-09 20:26 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-09 17:13 tex-mode.el Christopher Dimech
2021-02-09 17:22 ` tex-mode.el Emanuel Berg via Users list for the GNU Emacs text editor
2021-02-09 17:45   ` tex-mode.el Christopher Dimech
2021-02-09 18:15     ` tex-mode.el Emanuel Berg via Users list for the GNU Emacs text editor
2021-02-09 18:26       ` tex-mode.el Christopher Dimech
2021-02-09 18:37         ` tex-mode.el Emanuel Berg via Users list for the GNU Emacs text editor
2021-02-09 18:52           ` tex-mode.el Christopher Dimech
2021-02-09 19:05             ` tex-mode.el Emanuel Berg via Users list for the GNU Emacs text editor
2021-02-09 19:39               ` tex-mode.el Christopher Dimech
2021-02-09 19:45               ` tex-mode.el Christopher Dimech
2021-02-10 20:43               ` tex-mode.el Christopher Dimech
2021-02-10 20:49                 ` tex-mode.el Emanuel Berg via Users list for the GNU Emacs text editor
2021-02-10 21:01                   ` tex-mode.el Christopher Dimech
2021-02-10 21:21                     ` tex-mode.el Stefan Monnier
2021-02-10 21:25                       ` tex-mode.el Christopher Dimech
2021-02-10 21:30                         ` tex-mode.el Stefan Monnier
2021-02-10 21:54                           ` tex-mode.el Christopher Dimech
2021-02-11  3:13                     ` tex-mode.el Emanuel Berg via Users list for the GNU Emacs text editor
2021-02-11  3:27                       ` tex-mode.el Christopher Dimech
2021-02-09 20:13         ` tex-mode.el tomas
2021-02-09 20:26           ` Christopher Dimech [this message]
2021-02-09 20:45             ` tex-mode.el tomas
2021-02-10  3:53               ` tex-mode.el Michael Heerdegen
2021-02-10  4:01                 ` tex-mode.el Christopher Dimech
2021-02-11  3:42                   ` tex-mode.el Michael Heerdegen
2021-02-11  4:01                     ` tex-mode.el Christopher Dimech
2021-02-11  4:11                       ` tex-mode.el Michael Heerdegen
2021-02-11  4:27                         ` tex-mode.el Christopher Dimech
2021-02-11 13:29                         ` tex-mode.el Christopher Dimech
2021-02-11 21:11                   ` tex-mode.el Emanuel Berg via Users list for the GNU Emacs text editor
2021-02-11 23:08                     ` tex-mode.el Christopher Dimech

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=trinity-1968824c-b9ef-44b4-87a8-72ddd987b2fc-1612902401471@3c-app-mailcom-bs05 \
    --to=dimech@gmx.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=moasenwood@zoho.eu \
    --cc=tomas@tuxteam.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).