From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
Benjamin Buchmuller <benjamin.buchmuller@gmail.com>
Subject: Re: mkiv digits/units zero padding not working
Date: Thu, 7 May 2020 18:21:04 +0200 [thread overview]
Message-ID: <35d7e33f-77ce-26b2-186f-c5ea8bf40374@gmail.com> (raw)
In-Reply-To: <8386B394-797D-40F4-8193-AEC94CE8836B@gmail.com>
Benjamin Buchmuller schrieb am 07.05.2020 um 17:31:
> Hi,
>
> I’m trying to get
>
> \digits{15.0=}±\digits{1.00}
>
> \digits{_8.12}±\digits{0.34}
>
> horizontally aligned as
>
> 15.0 ±1.00
> 8.12±0.34
>
> But I get
>
> 15.0±1.00
> 8.12±0.34
>
> instead.
>
> From the source (phys-dim.mkiv), I can see that “=“ should expand to \hphantom{0}. (I think \zeropoint in the table is outdated, since \def\zeropoint\hphantom{0} does not solve the problem either.)
1. Which table?
2. This is not how \def works.
3. When you redefine \zeropoint (which isn't a macro) you're going to
break everything.
> I can’t use tabulate or alignment in math mode for this problem unfortunately.
I looked at the code and the problem is = can only be used to insert
space for two digits (e.g. 100.==).
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2020-05-07 16:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-07 15:31 Benjamin Buchmuller
2020-05-07 16:21 ` Wolfgang Schuster [this message]
2020-05-07 17:41 ` Benjamin Buchmuller
2020-05-07 18:00 ` Wolfgang Schuster
2020-05-07 19:22 ` Benjamin Buchmuller
2020-05-07 20:13 ` Benjamin Buchmuller
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=35d7e33f-77ce-26b2-186f-c5ea8bf40374@gmail.com \
--to=wolfgang.schuster.lists@gmail.com \
--cc=benjamin.buchmuller@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).