Hi, Is this wanted or a bug? If it's wanted, then why? --8<---------------cut here---------------start------------->8--- \starttext \section{Why is the align key not used?} \setupTABLE[width=3cm, height=3cm, align={middle, lohi}] \bTABLE \bTR \bTD bla \eTD \eTR \eTABLE \section{Workaround} \setupTABLE[each][each][width=3cm, height=3cm, align={middle, lohi}] \bTABLE \bTR \bTD bla \eTD \eTR \eTABLE \stoptext --8<---------------cut here---------------end--------------->8--- TIA for any explanation, -- Peter
Am 04.10.2013 um 10:57 schrieb Peter Münster
Hi,
Is this wanted or a bug? If it's wanted, then why?
--8<---------------cut here---------------start------------->8--- \starttext \section{Why is the align key not used?} \setupTABLE[width=3cm, height=3cm, align={middle, lohi}] \bTABLE \bTR \bTD bla \eTD \eTR \eTABLE
\section{Workaround} \setupTABLE[each][each][width=3cm, height=3cm, align={middle, lohi}] \bTABLE \bTR \bTD bla \eTD \eTR \eTABLE \stoptext
The \bTABLE does set its own values for the align-key which overwrites your settings from \setupTABLE. The arguments in the second argument are processed at a later stage (this happens always when you use row/columns setups) and taken into account when the cells are typeset. Wolfgang
Hello Peter,
two more ways which work OK (my preferred ways):
----
\section{Alt 1}
\bTABLE
\setupTABLE[width=3cm, height=3cm, align={middle, lohi}] % Place setup just after \bTABLE...
\bTR \bTD bla \eTD \eTR
\eTABLE
\section{Alt 2}
\bTABLE[width=3cm, height=3cm, align={middle, lohi}] % ... or perform setup in the scope of \bTABLE
\bTR \bTD bla \eTD \eTR
\eTABLE
----
Best regards,
Lukas
On Fri, 04 Oct 2013 11:03:38 +0200, Wolfgang Schuster
Am 04.10.2013 um 10:57 schrieb Peter Münster
: Hi,
Is this wanted or a bug? If it's wanted, then why?
--8<---------------cut here---------------start------------->8--- \starttext \section{Why is the align key not used?} \setupTABLE[width=3cm, height=3cm, align={middle, lohi}] \bTABLE \bTR \bTD bla \eTD \eTR \eTABLE
\section{Workaround} \setupTABLE[each][each][width=3cm, height=3cm, align={middle, lohi}] \bTABLE \bTR \bTD bla \eTD \eTR \eTABLE \stoptext
The \bTABLE does set its own values for the align-key which overwrites your settings from \setupTABLE. The arguments in the second argument are processed at a later stage (this happens always when you use row/columns setups) and taken into account when the cells are typeset.
Wolfgang
-- Ing. Lukáš Procházka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038
Am 04.10.2013 um 13:31 schrieb Procházka Lukáš Ing. - Pontex s. r. o.
Hello Peter,
two more ways which work OK (my preferred ways):
---- \section{Alt 1}
\bTABLE \setupTABLE[width=3cm, height=3cm, align={middle, lohi}] % Place setup just after \bTABLE... \bTR \bTD bla \eTD \eTR \eTABLE
This isn’t good style and you would loose the option to use \setupTABLE[textwidth=<dimenson>]. Better methods are \setupTABLE[start][..,..=..,..] \bTABLE … \eTBALE or \startsetups[table:format] \setupTABLE[..,..=..,..] \stopsetups \bTABLE[setups=table:format] … \eTBALE Wolfgang
participants (3)
-
Peter Münster
-
Procházka Lukáš Ing. - Pontex s. r. o.
-
Wolfgang Schuster