* unwanted space in front of table
@ 2010-03-09 16:23 zs
2010-03-09 16:34 ` Wolfgang Schuster
0 siblings, 1 reply; 6+ messages in thread
From: zs @ 2010-03-09 16:23 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: unwanted space in front of table
2010-03-09 16:23 unwanted space in front of table zs
@ 2010-03-09 16:34 ` Wolfgang Schuster
2010-03-09 16:36 ` Taco Hoekwater
0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2010-03-09 16:34 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
Wolfgang
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: unwanted space in front of table
2010-03-09 16:34 ` Wolfgang Schuster
@ 2010-03-09 16:36 ` Taco Hoekwater
2010-03-09 16:49 ` Wolfgang Schuster
0 siblings, 1 reply; 6+ messages in thread
From: Taco Hoekwater @ 2010-03-09 16:36 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: unwanted space in front of table
2010-03-09 16:36 ` Taco Hoekwater
@ 2010-03-09 16:49 ` Wolfgang Schuster
2010-03-09 17:10 ` zs
0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2010-03-09 16:49 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* unwanted space in front of table
@ 2010-03-09 16:23 zs
0 siblings, 0 replies; 6+ messages in thread
From: zs @ 2010-03-09 16:23 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-03-09 17:10 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-09 16:23 unwanted space in front of table zs
2010-03-09 16:34 ` Wolfgang Schuster
2010-03-09 16:36 ` Taco Hoekwater
2010-03-09 16:49 ` Wolfgang Schuster
2010-03-09 17:10 ` zs
2010-03-09 16:23 zs
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).