From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
Kirill Davidov <davidov_ka@edu.surgu.ru>
Subject: [NTG-context] Re: Spacing issue in \digits with mode=3
Date: Sat, 26 Oct 2024 14:56:50 +0200 [thread overview]
Message-ID: <0cc4315d-dc06-e954-cf05-b08921716264@gmail.com> (raw)
In-Reply-To: <91e4731e-b875-419c-b24d-eebc19406043@edu.surgu.ru>
Kirill Davidov schrieb am 26.10.2024 um 11:32:
> Greetings,
>
> I have been making a table with \digits aligned cells and noticed that
> in mode 3 (thin mu skips as group separator, comma as decimal separator)
> a specification like {_X.=} causes the single digit number to be
> misaligned, it's like there's about 2mu worth of space just before the
> number. I don't have much of an idea as to what causes it. It doesn't
> seem to be an issue in mode 1, although it may be simply not as
> noticeable. This also affects \unit.
There are no mu skips in your example because the values are math.
When you use modes 0--2 ConTeXt inserts a space based on the width of an
period but the other
modes use either \thinspace (mode 3 and 4) or \thickspace (mode 5 and 6)
as separator.
%%%% begin example
\setdigitmode{3}
\startdocument
\type{1,000} = \the\dimexpr\widthofstring{1,000}\relax
\type{1.000} = \the\dimexpr\widthofstring{\digits{1.000}}\relax
\type{1\thinspace 000} = \the\dimexpr\widthofstring{1\thinspace 000}\relax
\type{1.000} = \the\dimexpr\widthofstring{\digits{1.===}}\relax
\stopdocument
%%%% end example
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2024-10-26 12:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-26 9:32 [NTG-context] " Kirill Davidov
2024-10-26 11:49 ` [NTG-context] " vm via ntg-context
2024-10-26 12:56 ` Wolfgang Schuster [this message]
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=0cc4315d-dc06-e954-cf05-b08921716264@gmail.com \
--to=wolfgang.schuster.lists@gmail.com \
--cc=davidov_ka@edu.surgu.ru \
--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).