Changes

Jump to navigation Jump to search
no edit summary
===In LaTeX:===<small><pretexcode>
\documentclass{article}
\begin{document}
a midaligned parbox: \parbox[c]{1em}{1 2 3}
\end{document}
</pre></smalltexcode>
===In ConTeXt: ???=== Please note that this is only my suggestion. I believe there must be an easier way too! For the first box: <texcode>\setupTABLE[frame=off]\setupTABLE[c][1,2][align=lohi]\bTABLE\bTR\bTD a box with a table:\eTD\bTD[frame=on] {\bTABLE[frame=off] \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 table: \vcenter{\framed{\bTABLE[frame=off] \bTR\bTD 1 \eTD\eTR \bTR\bTD 2 \eTD\eTR \bTR\bTD 3 \eTD\eTR\eTABLE}}</texcode> It works on older ConTeXt distributions, here it seems to be broken: <context>a box with a table: \vcenter{\framed{\bTABLE[frame=off] \bTR\bTD 1 \eTD\eTR \bTR\bTD 2 \eTD\eTR \bTR\bTD 3 \eTD\eTR\eTABLE}}</context> The second box <b>should</b> be possible to typeset as<texcode>\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</texcode> but it doesn't work: <context>\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</context>

Navigation menu