From: Tomas Hala <tomas.hala@mendelu.cz>
To: Mailing list ConTeXt <ntg-context@ntg.nl>
Subject: Bad cooperation between \unit and TABLE
Date: Mon, 4 Nov 2019 00:43:12 +0100 [thread overview]
Message-ID: <20191103234312.GA30645@akela.mendelu.cz> (raw)
Hi all,
I came across the problem with bad aligment of cells in natural tables
(longer MWE below):
When I use \unit for better typesetting of units, lines 6, 6a, 8 and 9
are sloppy-aligned -- first, the alignmentcharacter is ignored,
secondly the very huge space appears between e.g. m and 2. It seems
that it happens at any time when the exponent in any form is required.
Moreover, the line 11 is also sloppy-aligned as a consequence of the
use of \unit|\high commands because if the line 2a is active, the
alignment position is computed properly and the line 11 is ok.
Is it a bug, or am I doing something wrong?
Best wishes,
Tomáš
\starttext
\setupTABLE[c][2][alignmentcharacter={text->,}, aligncharacter=yes, align={lohi,middle}]
\bTABLE
\bTR\bTD Line \#1 \eTD \bTD39 \eTD \eTR
\bTR\bTD Line \#2 \eTD \bTD 42,185 \eTD \eTR
%\bTR\bTD Line \#2a \eTD \bTD 55 550,21 \eTD\eTR
\bTR\bTD Line \#3 \eTD \bTD 41,85\,\% \eTD \eTR
\bTR\bTD Line \#4 \eTD \bTD 1125,80 centimeter \eTD\eTR
\bTR\bTD Line \#5\eTD \bTD 1125,80 \unit{cm} \eTD\eTR
\bTR\bTD Line \#6 \eTD \bTD 129,30 \unit{square centimeter} \eTD\eTR
\bTR\bTD Line \#6a \eTD \bTD 129,30 \unit{m2} \eTD\eTR
\bTR\bTD Line \#7 \eTD \bTD 129,30 \unit{m} \eTD\eTR
\bTR\bTD Line \#8 \eTD \bTD 129,30 cm$^{\tfxx2}$\,\eTD\eTR
\bTR\bTD Line \#9 \eTD \bTD 0,21 m\high{2} \eTD\eTR
\bTR\bTD Line \#10 \eTD \bTD 41,85 \% \eTD\eTR
\bTR\bTD Line \#11 \eTD \bTD 55 550,21 \eTD\eTR
\bTR\bTD Line \#12 \eTD \bTD 0,21 \eTD\eTR
\eTABLE
\stoptext
___________________________________________________________________________________
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:[~2019-11-03 23:43 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=20191103234312.GA30645@akela.mendelu.cz \
--to=tomas.hala@mendelu.cz \
--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).