From: Axel Kielhorn <tex@axelkielhorn.de>
To: "ntg-context@ntg.nl" <ntg-context@ntg.nl>
Subject: Formulas in TABLE with character alignment
Date: Tue, 9 Oct 2018 08:02:29 +0200 [thread overview]
Message-ID: <2AD11991-7080-4FCE-9E2C-72EABF70A23F@axelkielhorn.de> (raw)
Hello,
I decided to use TABLE because I may need some more complex layouts later and want to use just one way to define a table.
One of the great things about TABLE is the possibility to align columns.
The table below works fine when I comment the first \bTR line.
With the first line the result is strange.
I need some way to protect the words in the header, putting them in an \mbox didn’t help.
\starttext
{
\setupTABLE[row][each][frame=off]
\setupTABLE[c][1][width=0.1\textwidth]
\setupTABLE[c][2][width=0.1\textwidth,alignmentcharacter={,},aligncharacter=yes,align=middle]
\setupTABLE[c][3][width=0.1\textwidth,alignmentcharacter={,},aligncharacter=yes,align=middle]
\setupTABLE[c][4][width=0.1\textwidth,alignmentcharacter={,},aligncharacter=yes,align=middle]
\bTABLE
\bTABLEbody
\bTR \bTD \eTD \bTD \chemical{NH_3} \eTD \bTD R407C \eTD \bTD R134a \eTD \eTR
\bTR \bTD \math{t_s} \eTD \bTD \math{p_s} \eTD \bTD \math{p_s} \eTD \bTD \math{p_s} \eTD \eTR
\bTR \bTD \unit{Celsius} \eTD \bTD \unit{bar} \eTD \bTD \unit{bar} \eTD \bTD \unit{bar} \eTD \eTR
\bTR \bTD \unit{+35} \eTD \bTD 13,50 \eTD \bTD 14,47 \eTD \bTD 8,865 \eTD \eTR
\bTR \bTD \unit{-40} \eTD \bTD 0,717 \eTD \bTD 0,956 \eTD \bTD 0,516 \eTD \eTR
\eTABLEbody
\eTABLE
}
\stoptext
Greetings Axel
___________________________________________________________________________________
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 reply other threads:[~2018-10-09 6:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-09 6:02 Axel Kielhorn [this message]
2018-10-09 9:54 ` Hans Hagen
2018-10-09 11:24 ` Axel Kielhorn
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=2AD11991-7080-4FCE-9E2C-72EABF70A23F@axelkielhorn.de \
--to=tex@axelkielhorn.de \
--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).