ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Formulas in TABLE with character alignment
@ 2018-10-09  6:02 Axel Kielhorn
  2018-10-09  9:54 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Axel Kielhorn @ 2018-10-09  6:02 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-10-09 11:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-09  6:02 Formulas in TABLE with character alignment Axel Kielhorn
2018-10-09  9:54 ` Hans Hagen
2018-10-09 11:24   ` Axel Kielhorn

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