ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* mkiv \digits{2.0=} zero padding feature request
@ 2020-05-07 19:31 Benjamin Buchmuller
  0 siblings, 0 replies; only message in thread
From: Benjamin Buchmuller @ 2020-05-07 19:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-05-07 19:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-07 19:31 mkiv \digits{2.0=} zero padding feature request Benjamin Buchmuller

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).