unwanted space in front of table
Hi, I found a space between character and table. Is it intended behavior or bug? Zdenek Sample code: \starttext \setupTABLE[background=color,backgroundcolor=yellow] This is OK: a% \setupTABLE[column][1][width=20mm]% \setupTABLE[column][2][width=20mm]% \setupTABLE[column][3][width=20mm]% \bTABLE% \bTR \bTD test \eTD \bTD test \eTD \bTD test \eTD \eTR \bTR \bTD test \eTD \bTD test \eTD \bTD test \eTD \eTR \bTR \bTD test \eTD \bTD test \eTD \bTD test \eTD \eTR \eTABLE% b Here we have space: a \setupTABLE[column][1][width=20mm] \setupTABLE[column][2][width=20mm] \setupTABLE[column][3][width=20mm] \bTABLE% \bTR \bTD test \eTD \bTD test \eTD \bTD test \eTD \eTR \bTR \bTD test \eTD \bTD test \eTD \bTD test \eTD \eTR \bTR \bTD test \eTD \bTD test \eTD \bTD test \eTD \eTR \eTABLE b ... and thinner space here: a \setupTABLE[column][1,2,3][width=20mm] \bTABLE \bTR \bTD test \eTD \bTD test \eTD \bTD test \eTD \eTR \bTR \bTD test \eTD \bTD test \eTD \bTD test \eTD \eTR \bTR \bTD test \eTD \bTD test \eTD \bTD test \eTD \eTR \eTABLE b \stoptext
Wolfgang Schuster wrote:
Am 09.03.10 17:23, schrieb zs:
Hi,
I found a space between character and table. Is it intended behavior or bug?
It's normal. You can shorten your examples with
\bTABLE[width=20mm] ... \eTABLE
In general, it is advisable not to use any \setup.... commands in horizontal mode (unless there is absolutely no way around it). Best wishes, Taco
Am 09.03.10 17:36, schrieb Taco Hoekwater:
In general, it is advisable not to use any \setup.... commands in horizontal mode (unless there is absolutely no way around it). Right but for natural tables it's not so easy, maybe something like this will help.
\def\dobTABLE[#1]% {\pushTBL % box not here \bgroup \TBLhead\emptytoks \TBLnext\emptytoks \TBLbody\emptytoks \TBLfoot\emptytoks \ifhmode\kern\zeropoint\fi % blocks \removeunwantedspaces: check this on icare handelingsschema \resetcharacteralign % new \getparameters [\@@tbl\@@tbl] [\c!align={\v!right,\v!broad,\v!high},#1]% \doprocesslocalsetups{\csname\@@tbl\@@tbl\c!setups\endcsname}% \hsize\tbltbltextwidth ... You can make your setups in the preamble with \startsetups setups:table \setupTABLE[...] \stopsetups and use them in your document with \bTABLE[setups=setups:table] ... \eTABLE Wolfgang
participants (3)
-
Taco Hoekwater
-
Wolfgang Schuster
-
zs