In your example the argument for the align key is always empty which results
in the default alignment for a frame which put the content in the middle of the box.


Wolfgang
Pablo Rodriguez <mailto:oi...@gmx.es>
10. April 2018 um 21:05
Dear list,

I have the following sample:

\setupxtable[mytable]
[option={stretch, height},
align={\ifcase\currentxtablerow\fi}]
\starttext
\startxtable[mytable]
\startxrow
\startxcell 1 \stopxcell
\startxcell 2 \stopxcell
\stopxrow
\startxrow
\startxcell 3 \stopxcell
\startxcell 4 \stopxcell
\stopxrow
\stopxtable
\startxtable[option={stretch, height}]
\startxrow
\startxcell 1 \stopxcell
\startxcell 2 \stopxcell
\stopxrow
\startxrow
\startxcell 3 \stopxcell
\startxcell 4 \stopxcell
\stopxrow
\stopxtable
\stoptext

For some strange reason, when using \ifcase in align, default is changed
from {high, left} to {lohi, center}. Shouldn’t defaults be the same?

BTW, if I set align to {\ifodd\currentxtablerow\fi}. I wonder whether
this might be a bug.

Many thanks for your help,

Pablo

___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to