Changes

Jump to navigation Jump to search
simplify the macros
</texcode>
===In ConTeXt: ???=== Please note that this is only my suggestion. I believe there must be an easier way too! For the first box:
<texcode>
a box with a table:\setupTABLEframed [framelocation=off]middle, % vertically centered\setupTABLE[c][1 align=flushleft,2][% align=lohi]\bTABLE\bTR\bTD a box with no (default) is a table:normal hbox\eTD\bTD[frame % align=on]flushleft/middle/flushright/normal is used for multiple lines {\bTABLE[frame offset=off5pt] % to make the frame wider (as in LaTeX) \bTR\bTD {1 \eTD\eTR \bTR\bTD 2 \eTD\eTR \bTR\bTD 3 \eTD\eTR \eTABLE}\eTD\eTR\eTABLE</texcode> or
<texcode>a box with a tablemidaligned parbox: \vcenter{\framed{\bTABLE [location=middle, % vertically centered align=normal, % justified alignment frame=off, % no frame width=1em] % make box 1em wide; note that line breaking is not the same as in LaTeX (?) \bTR\bTD {1 \eTD\eTR \bTR\bTD 2 \eTD\eTR \bTR\bTD 3 \eTD\eTR\eTABLE}}
</texcode>
It works on older ConTeXt distributions<context>a box with a table:\framed [location=middle, here it seems % vertically centered align=flushleft, % align=no (default) is a normal hbox % align=flushleft/middle/flushright/normal is used for multiple lines offset=5pt] % to be broken:make the frame wider (as in LaTeX) {1\\2\\3}
<context>a box with a tablemidaligned parbox: \vcenter{\framed{\bTABLE [location=middle, % vertically centered align=normal, % justified alignment frame=off, % no frame width=1em] % make box 1em wide; note that line breaking is not the same as in LaTeX (?) \bTR\bTD {1 \eTD\eTR \bTR\bTD 2 \eTD\eTR \bTR\bTD 3 \eTD\eTR\eTABLE}}
</context>
The second box If you need a proper table (the one above only had one column), use <bcode>should\bTABLE ... \eTABLE</bcode> be possible to typeset asor similar instead of <texcodecode>1\setupTABLE[frame=on]\setupTABLE[c][1,2][align=lohi]\bTABLE\bTR\bTD a midaligned parbox:\eTD\bTD[offset=0pt,width=1em] 1 2 3\eTD\eTR\eTABLE</texcodecode>. See [[Tables Overview]] for more possibilities. 
but it doesn't workA broken example (for the second box):
<context>
\bTABLE
\bTR\bTD
a midaligned parbox:
\eTD\bTD[offset=0pt,width=1em]
1 2 3
\eTD\eTR
\eTABLE
</context>

Navigation menu