From: Florent Michel <florent.m42@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Aligning sub- and superscripts
Date: Thu, 24 Apr 2025 10:27:58 +0100 [thread overview]
Message-ID: <CALOhoeLgYB0i31d_tdbxDPw=nRjJA3hMwRpyyo4dZk4ji3vMEg@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1142 bytes --]
Hi,
I was going through the ‘Mathematics/Mathematical glyphs’ section of the
wiki. Unless I am missing something, the first method proposed in the
section ‘Subscript and superscript’ (
https://wiki.contextgarden.net/Mathematics/Mathematical_glyphs#Subscript_and_superscript)
to align sub- and superscripts does not seem to align them with ConTeXt
2025.04.01. The following example:
\starttext
$T^a_b^c$
$T^a{}_b{}^c{}$
\stoptext
produces (unless my eyes are deceiving me) twice the same output, with the
subscript b below a.
One possible workaround is to add 0-width spaces after indices (I just
added this workaround to the wiki so that it shows one working option).
This seems a bit of a hack, though (and not the easiest to type with most
keyboards), and the results are not perfect (the space between the a and c
looks a bit too wide to me; although that is probably subjective, and can
be resolved by manually adding \kern s).
Would anyone know if there is a better (easier to type and/or producing a
better result without having to manually add negative \kern s) solution?
Cheers,
Florent
[-- Attachment #1.2: Type: text/html, Size: 1387 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2025-04-24 9:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-24 9:27 Florent Michel [this message]
2025-04-24 9:33 ` [NTG-context] " Mikael Sundqvist
2025-04-24 9:44 ` Florent Michel
2025-04-24 9:46 ` Hans Hagen
2025-04-24 10:01 ` Florent Michel
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CALOhoeLgYB0i31d_tdbxDPw=nRjJA3hMwRpyyo4dZk4ji3vMEg@mail.gmail.com' \
--to=florent.m42@gmail.com \
--cc=ntg-context@ntg.nl \
/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 NNTP newsgroup(s).