ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* breaking tabulate in columns?
@ 2001-07-11  7:33 Mathias.Picker
  2001-07-11  8:59 ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Mathias.Picker @ 2001-07-11  7:33 UTC (permalink / raw)


[-- Attachment #1: Type: TEXT/plain, Size: 1044 bytes --]

Is there a way to force a column break between or (even better) in a
tabulate enviroment?

\startcolumns
\starttabulate[|r|p|]
\NC Fieldname \NC FieldValue \NC \AR
...
\stoptabulate
\column
\starttabulate..
\stoptabulate
\stopcolumns

Does not work. Nor does putting the \column inside the tabulate (e.g.
....\NR \n \column \n \NC...., which I would prefer)

Any hints?

A related question:

Is there another way to insert something like a narrow blank line in a
tabulate? I tried using \LR and \FR, and it looks good,  (\DC...\DL  is
way too much space), but for generating the output and for adjusting the
space I would long for something like \blank[dimension], e.g.
\blankline[dimension] Is there such a beast?

Thanks, Mathias
-- 
                            virtual earth
 Mathias Picker
 Geschäftsführer      Gesellschaft für Wissens re/prä sentation mbH

                            Mathias.Picker@virtual-earth.de 
			    Fon +49 89  / 540 7425-1
                            Fax +49 89  / 540 7425-9

[-- Attachment #2: Type: APPLICATION/pgp-signature, Size: 246 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: breaking tabulate in columns?
  2001-07-11  7:33 breaking tabulate in columns? Mathias.Picker
@ 2001-07-11  8:59 ` Hans Hagen
  2001-07-11  9:26   ` Mathias.Picker
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2001-07-11  8:59 UTC (permalink / raw)
  Cc: ntg-context

At 09:33 AM 7/11/01 +0200, Mathias.Picker@virtual-earth.de wrote:
>Is there a way to force a column break between or (even better) in a
>tabulate enviroment?
>
>\startcolumns
>\starttabulate[|r|p|]
>\NC Fieldname \NC FieldValue \NC \AR
>...
>\stoptabulate
>\column
>\starttabulate..
>\stoptabulate
>\stopcolumns
>
>Does not work. Nor does putting the \column inside the tabulate (e.g.
>....\NR \n \column \n \NC...., which I would prefer)

columns acts on the whole page, not on individual components, and tables
are independent things

>A related question:
>
>Is there another way to insert something like a narrow blank line in a
>tabulate? I tried using \LR and \FR, and it looks good,  (\DC...\DL  is
>way too much space), but for generating the output and for adjusting the
>space I would long for something like \blank[dimension], e.g.
>\blankline[dimension] Is there such a beast?

you can add 

\noalign{\blank[small]}

between rows, ot alternatively add to cont-new.tex: 

\def\complexTableTB[#1]{\TABLEnoalign{\blanko[#1]}}
\def\simpleTableTB     {\TABLEnoalign{\blanko}}

\def\TabulateTB
  {\complexorsimpleTable{TB}}

\def\doTableinterline% #1 
  {\ifnum\currentTABLEcolumn>\maxTABLEcolumn
     \chuckTABLEautorow
   \else\ifnum\currentTABLEcolumn=0
     \TABLEnoalign
       {\global\let\checkTABLEautorow=\empty
        \global\let\chuckTABLEautorow=\empty}%
   \else
     \setTABLEerror\TABLEmissingcolumn
     \handleTABLEerror
   \fi\fi
   \complexorsimpleTable} % {#1} 

\def\TableHL{\doTableinterline{HL}}
\def\TableTB{\doTableinterline{TB}}

\appendtoks\let\TB\TableTB   \to\everytable
\appendtoks\let\TB\TabulateTB\to\everytabulate

And then use \TB 

\starttabulate
\NC text \NC text \NC \NR 
\TB[small]
\NC text \NC text \NC \NR 
\TB[4*big]
\NC text \NC text \NC \NR 
\stoptabulate

\starttable[|||]
\VL text \VL text \VL \AR 
\TB[small]
\VL text \VL text \VL \AR 
\TB[4*big]
\VL text \VL text \VL \AR 
\stoptable

I have no time to fully integrate and test this now, so for the moment it's
cont-new functionality

Hans 
-------------------------------------------------------------------------
                                  Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: breaking tabulate in columns?
  2001-07-11  8:59 ` Hans Hagen
@ 2001-07-11  9:26   ` Mathias.Picker
  2001-07-11 13:59     ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Mathias.Picker @ 2001-07-11  9:26 UTC (permalink / raw)
  Cc: ntg-context

[-- Attachment #1: Type: TEXT/plain, Size: 1407 bytes --]

On 11 Jul, Hans Hagen wrote:
> At 09:33 AM 7/11/01 +0200, Mathias.Picker@virtual-earth.de wrote:
>>Is there a way to force a column break between or (even better) in a
>>tabulate enviroment?
>[...]
> 
> columns acts on the whole page, not on individual components, and
> tables are independent things

Thanks for the fast answer. But is that a no??

And about columns acting on the whole page, at least the beta manual
give the impression that one can use it on parts of a page.

I'm currently using
\texrule{Header}
\startcolumns
\starttabulate \stoptabulate
\stopcolumns
\texrule{Header}
\startcolumns
\starttabulate \stoptabulate
\stopcolumns

on one page, and the textrules use the whole page, just like I expected.
I just checked this with text, but the behaviour is the same, text
before or after columns is using the whole page width...

So, what exactly does "columns acts on the whole page" mean?

> 
>>A related question:

Thanks for this answer I'll try it.

And: thanks for context! I love it, and use it to create "presentable"
pdf reports from databases. A joy to use.

-- 
                            virtual earth
 Mathias Picker
 Geschäftsführer      Gesellschaft für Wissens re/prä sentation mbH

                            Mathias.Picker@virtual-earth.de 
			    Fon +49 89  / 540 7425-1
                            Fax +49 89  / 540 7425-9

[-- Attachment #2: Type: APPLICATION/pgp-signature, Size: 246 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: breaking tabulate in columns?
  2001-07-11  9:26   ` Mathias.Picker
@ 2001-07-11 13:59     ` Hans Hagen
  0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2001-07-11 13:59 UTC (permalink / raw)
  Cc: ntg-context

At 11:26 AM 7/11/01 +0200, Mathias.Picker@virtual-earth.de wrote:

>Thanks for the fast answer. But is that a no??

yes, it's a no

>And about columns acting on the whole page, at least the beta manual
>give the impression that one can use it on parts of a page.
>
>I'm currently using
>\texrule{Header}
>\startcolumns
>\starttabulate \stoptabulate
>\stopcolumns
>\texrule{Header}
>\startcolumns
>\starttabulate \stoptabulate
>\stopcolumns
>
>on one page, and the textrules use the whole page, just like I expected.
>I just checked this with text, but the behaviour is the same, text
>before or after columns is using the whole page width...

tex collects content in the so called main vertical list and one can
operate on parts of it; the multi column routine can indeed act 'stepwise'
on parts of the page

Hans
-------------------------------------------------------------------------
                                  Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-07-11 13:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-11  7:33 breaking tabulate in columns? Mathias.Picker
2001-07-11  8:59 ` Hans Hagen
2001-07-11  9:26   ` Mathias.Picker
2001-07-11 13:59     ` Hans Hagen

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).