ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Benjamin Buchmuller <benjamin.buchmuller@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: mkiv \digits{2.0=} zero padding feature request
Date: Thu, 7 May 2020 21:31:48 +0200	[thread overview]
Message-ID: <47B3F8A9-43CB-4413-9350-AE20E70B3033@gmail.com> (raw)

Hi,


As Wolfgang has figured out, zero padding in \digits only works for trailing (and omitted) zeroes when immediately preceded by the decimal separator.

It would be nice if this would work even if there is a number preceding, so that

\digits{3.1=}x\crlf
\digits{3.==}x\crlf
\digits{3.14}x

would align at the decimal separator when right aligned. This is useful in some circumstances, where the number of significant digits varies between sources, so that one needs to typset for example 

\digits{3.1=}±\digits{0.5}\crlf
\digits{3.28}±\digits{0.12}


Thanks!


Benjamin
___________________________________________________________________________________
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
___________________________________________________________________________________

                 reply	other threads:[~2020-05-07 19:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=47B3F8A9-43CB-4413-9350-AE20E70B3033@gmail.com \
    --to=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).