* newline with \setupTABLE[bottom=...]
@ 2006-06-22 16:55 Peter Münster
2006-06-23 8:21 ` Hans Hagen
0 siblings, 1 reply; 3+ messages in thread
From: Peter Münster @ 2006-06-22 16:55 UTC (permalink / raw)
Hello,
in accordance to http://context.literatesolutions.com/collector/52
I got used to write things like:
\starttext
\setupTABLE[c][1][style=before,bottom=after]
\bTABLE
\bTR\bTD X\eTD\bTD bla\eTD\eTR
\bTR\bTD X\eTD\bTD bla\eTD\eTR
\eTABLE
\stoptext
This worked fine, but with the latest ConTeXt, the bottom=... introduces a
newline. Do you have a solution for this issue?
Greetings, Peter
--
http://pmrb.free.fr/contact/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: newline with \setupTABLE[bottom=...]
2006-06-22 16:55 newline with \setupTABLE[bottom=...] Peter Münster
@ 2006-06-23 8:21 ` Hans Hagen
2006-06-23 16:52 ` Peter Münster
0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2006-06-23 8:21 UTC (permalink / raw)
� wrote:
> Hello,
> in accordance to http://context.literatesolutions.com/collector/52
> I got used to write things like:
>
> \starttext
> \setupTABLE[c][1][style=before,bottom=after]
> \bTABLE
> \bTR\bTD X\eTD\bTD bla\eTD\eTR
> \bTR\bTD X\eTD\bTD bla\eTD\eTR
> \eTABLE
> \stoptext
>
> This worked fine, but with the latest ConTeXt, the bottom=... introduces a
> newline. Do you have a solution for this issue?
>
first of all, style is rather special, so you'd better not abuse that one to often (there is some checking on the meaning done)
the companion of bottom is top and both are meant for vertical things, normally the \start/\stop things ; some commands provide left and right for horizontal things which is probably what you're looking for
top bottom usage: the following sets a narrower text (the origin of this thread)
\bTABLE[top=\startnarrower,bottom=\stopnarrower]
\bTR \bTD something \eTD \eTR
\eTABLE
this is also a nice one:
\startsetups whatever
whatever initialzations needed
\stopsetups
\bTABLE[setups=whatever]
\bTR \bTD something \eTD \eTR
\eTABLE
the next code implements left/right:
\unprotect
\def\bTBLCELL % why not \doinhibitblank
{\inhibitblank
\doconvertfont\tbltblstyle\empty
\everypar{\tbltblleft\delayedbegstrut}}
\def\eTBLCELL
{\ifhmode
\delayedendstrut
\tbltblright
\par % added 13/4/2006
\else
\par
\ifdim\prevdepth<\zeropoint % =-1000pt ?
\vskip-\strutdp
\else
\removebottomthings
\fi
\fi}
\setupTABLE
[\c!left=,
\c!right=]
\bTABLE[left={(},right={)},top=\startnarrower,bottom=\stopnarrower]
\bTR \bTD something \eTD \eTR
\eTABLE
\stoptext
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: newline with \setupTABLE[bottom=...]
2006-06-23 8:21 ` Hans Hagen
@ 2006-06-23 16:52 ` Peter Münster
0 siblings, 0 replies; 3+ messages in thread
From: Peter Münster @ 2006-06-23 16:52 UTC (permalink / raw)
On Fri, 23 Jun 2006, Hans Hagen wrote:
> \bTABLE[left={(},right={)},top=\startnarrower,bottom=\stopnarrower]
> \bTR \bTD something \eTD \eTR
> \eTABLE
Thank you very much!
If this goes into the distribution, the item
http://context.literatesolutions.com/collector/52 can be considered
resolved.
Cheers, Peter
--
http://pmrb.free.fr/contact/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-06-23 16:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-22 16:55 newline with \setupTABLE[bottom=...] Peter Münster
2006-06-23 8:21 ` Hans Hagen
2006-06-23 16:52 ` Peter Münster
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).