Hans Hagen wrote:
Mojca Miklavec wrote:
On the wiki (http://contextgarden.net/Vertically_centred) a while ago
someone asked how to do the following in ConTeXt:
%%%%%%
\documentclass{article}
\begin{document}
a box with a table:
\fbox{\begin{tabular}[c]{l}1\\2\\3\end{tabular}}\par
a midaligned parbox: \parbox[c]{1em}{1 2 3}
\end{document}
%%%%%%
^^^^ watch the \\ ! ! ! !
Thanks, Hans,
I'm sorry. I take my word about strange line breaking back.
But nevertheless ... the live.contextgarden.net version seems to have
problems with all these examples. It does strange things (see the PNGs
attached to my first posting).
I don't have the newest version installed, so I can't test test it here.
Mojca
so, in order to compare, use 1\\2\\3 here too
\setupTABLE[frame=on] % only for debugging reasons
\setupTABLE[c][1,2][align=lohi] % to center vertically (any better way?)
\bTABLE
\bTR\bTD
a midaligned parbox:
\eTD\bTD[offset=overlay,width=1em] % 1em wide paragraph
1 2 3
\eTD\eTR
\bTR\bTD
a midaligned parbox:
\eTD\bTD[offset=overlay,width=1em] % 1em wide paragraph
\ruledhbox{1 2} 3
\eTD\eTR
\bTR\bTD
a midaligned parbox:
\eTD\bTD[offset=overlay,width=1em] % 1em wide paragraph
1\\2\\3
\eTD\eTR
\eTABLE
_______________________________________________
ntg-context mailing list
[email protected]
http://www.ntg.nl/mailman/listinfo/ntg-context