ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Background cells in tables?
@ 2002-09-17  7:20 Gilbert van den Dobbelsteen
  0 siblings, 0 replies; 6+ messages in thread
From: Gilbert van den Dobbelsteen @ 2002-09-17  7:20 UTC (permalink / raw)


Perhaps this was discussed before, but I need to do something with tables
and backgrounds (colors and stuff). But it didn't work! I used a simple
example from core-tab:

\starttabel[|c|c|c|]
\HL
\BC      \BC      \BL         \SR
\VL test \VL test \VL test \VL\SR
\HL
\stoptabel

This doesn't work!. In fact I need the longtables because they are bigger
than 1 page, and I need alternating backgrounds (could use the natural
tables for the latter, but it doesn't do the first). Well anyway, here's the
log:

This is pdfeTeX, Version 3.14159-14h-pretest-20010210-2.1 (Web2c 7.3.3.1)
(format=cont-nl 2002.8.9)  17 SEP 2002 09:09
entering extended mode
**&cont-nl t.tex
(./t.tex{c:/tex/texmf/pdftex/config/pdftex.cfg}

ConTeXt  ver: 2002.7.26  fmt: 2002.8.9  int: dutch  mes: dutch

taal           : taal nl is actief
<protectionstate 0>
systeem        : cont-new geladen
(c:/tex/texmf/tex/context/base/cont-new.tex
systems        : beware: some patches loaded from cont-new.tex!
)
systeem        : cont-old geladen
(c:/tex/texmf/tex/context/base/cont-old.tex
loading        : Context Old Macros
)
systeem        : cont-fil geladen
(c:/tex/texmf/tex/context/base/cont-fil.tex
loading        : Context File Synonyms
)
korps          : 12pt rm wordt geladen
taal           : patronen 2:2-en-2 4:2-de-2 5:2-fr-2 6:2-es-2 7:2-nl-2
8:2-it-2
 geladen
specials       : tex,postscript,rokicki geladen
\openout2 = `t.tui'.

systeem        : t.top geladen
(./t.top
specials       : definitiefile tpd wordt geladen
(c:/tex/texmf/tex/context/base/spec-tpd.tex
specials       : definitiefile fdf wordt geladen
(c:/tex/texmf/tex/context/base/spec-fdf.tex <unprotect 3> <unprotect 4>
system (E-TEX) : [line 1783] \ifcsname
<unprotect 5> <protect 5> <protect 4> <protect 3>)
specials       : fdf geladen
<unprotect 3> <protect 3>)
specials       : fdf,tpd geladen
)
\openout0 = `mpgraph.mp'.

\openout0 = `mprun.mp'.

\openout0 = `mpgraph.mp'.

\openout0 = `mprun.mp'.

pdftex         : needs map file: original-context-symbol.map
pdftex         : needs map file: pl0-ams-cmr.map
pdftex         : needs map file: original-vogel-symbol.map
kleur          : systeem rgb is globaal actief
(./t.tuo) (./t.tuo) (./t.tuo) (./t.tuo) (./t.tuo) (./t.tuo) (./t.tuo)
(./t.tuo)
(./t.tuo) (./t.tuo) (./t.tuo) (./t.tuo) (./t.tuo)
systems        : begin file t at line 3
! Missing } inserted.
<inserted text>
                }
<to be read again>
                   \endtemplate
\next ->&
         \normalTABLElongrule &
\dodocomplexTableGL ...LEmultirule {#3}}\fi \next
                                                  \doPostTableGL #2
\TABLEgrayline ...\BC \complexTableRASTER [1,0.95]
                                                  \SR
\nextTABLEgrayline ...mn 0}\unskip \TABLEgrayline
                                                  \TABLEendBCL
\TABLEnoalign...
...
l.10 \VL
         test \VL test \VL test \VL\SR
? x

Here is how much of TeX's memory you used:
 701 strings out of 35052
 10296 string characters out of 523437
 385103 words of memory out of 1500001
 29090 multiletter control sequences out of 10000+50000
 9049 words of font info for 28 fonts, out of 200000 for 1000
 56 hyphenation exceptions out of 1000
 31i,7n,25p,189b,406s stack positions out of 5000i,500n,5000p,200000b,40000s
No pages of output.


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

* Re: Background cells in tables?
       [not found]     ` <Pine.LNX.4.30.0209171342420.6448-100000@panter.soci.aau.dk >
@ 2002-09-17 12:42       ` Hans Hagen
  0 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2002-09-17 12:42 UTC (permalink / raw)
  Cc: ntg-context

At 01:48 PM 9/17/2002 +0200, Gilbert van den Dobbelsteen wrote:
>On Tue, 17 Sep 2002, Gilbert van den Dobbelsteen wrote:
>
> >
> > Yepp, thanks it works! I will read the natural table docu for the rest 
> (need
> > to get reid of the lines but that's probably easy, and also need to repeat
> > the heading on the next page. COntact you later if things don't work out
>
>The core-ntb.tex file mentions:
>
>%D To Do:
>%D
>%D \starttypen
>%D break over pagina
>%D kop herhalen
>%D reset settings
>
>That's a pity, I needed the "kop herhalen". I tried: split=repeat in the
>\bTABLE and made the header look like this:
>
>\bTR \bTH bla... \eTH \bTH  blaa blaa \eTH \eTR
>
>but this only results in bold typeface for this table line.
>
>Is there any chance this will be implemented?

Well, it took me some magic, but now suddenly your version provides:

\bTABLEhead
\bTABLEbody
\bTABLEfoot

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
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------


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

* Re: Background cells in tables?
       [not found]   ` <Pine.LNX.4.30.0209171207470.5237-100000@panter.soci.aau.dk >
@ 2002-09-17 12:38     ` Hans Hagen
  0 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2002-09-17 12:38 UTC (permalink / raw)
  Cc: ntg-context

At 12:09 PM 9/17/2002 +0200, Gilbert van den Dobbelsteen wrote:
>On Tue, 17 Sep 2002, Hans Hagen wrote:
>
> >
> > try \bTABLE ... \eTABLE instead
>
>Yepp, thanks it works! I will read the natural table docu for the rest (need
>to get reid of the lines but that's probably easy, and also need to repeat
>the heading on the next page. COntact you later if things don't work out

just set 'split' to 'repeat' and define tableheads

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
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------


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

* Re: Background cells in tables?
  2002-09-17 10:09   ` Gilbert van den Dobbelsteen
@ 2002-09-17 11:48     ` Gilbert van den Dobbelsteen
       [not found]     ` <Pine.LNX.4.30.0209171342420.6448-100000@panter.soci.aau.dk >
  1 sibling, 0 replies; 6+ messages in thread
From: Gilbert van den Dobbelsteen @ 2002-09-17 11:48 UTC (permalink / raw)
  Cc: ntg-context

On Tue, 17 Sep 2002, Gilbert van den Dobbelsteen wrote:

>
> Yepp, thanks it works! I will read the natural table docu for the rest (need
> to get reid of the lines but that's probably easy, and also need to repeat
> the heading on the next page. COntact you later if things don't work out

The core-ntb.tex file mentions:

%D To Do:
%D
%D \starttypen
%D break over pagina
%D kop herhalen
%D reset settings

That's a pity, I needed the "kop herhalen". I tried: split=repeat in the
\bTABLE and made the header look like this:

\bTR \bTH bla... \eTH \bTH  blaa blaa \eTH \eTR

but this only results in bold typeface for this table line.

Is there any chance this will be implemented?

Gilbert


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

* Re: Background cells in tables?
  2002-09-17  7:35 ` Hans Hagen
@ 2002-09-17 10:09   ` Gilbert van den Dobbelsteen
  2002-09-17 11:48     ` Gilbert van den Dobbelsteen
       [not found]     ` <Pine.LNX.4.30.0209171342420.6448-100000@panter.soci.aau.dk >
       [not found]   ` <Pine.LNX.4.30.0209171207470.5237-100000@panter.soci.aau.dk >
  1 sibling, 2 replies; 6+ messages in thread
From: Gilbert van den Dobbelsteen @ 2002-09-17 10:09 UTC (permalink / raw)
  Cc: ntg-context

On Tue, 17 Sep 2002, Hans Hagen wrote:

>
> try \bTABLE ... \eTABLE instead

Yepp, thanks it works! I will read the natural table docu for the rest (need
to get reid of the lines but that's probably easy, and also need to repeat
the heading on the next page. COntact you later if things don't work out

Many thanks

Gilbert


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

* Re: Background cells in tables?
       [not found] <Pine.LNX.4.30.0209170910170.3227-100000@panter.soci.aau.dk >
@ 2002-09-17  7:35 ` Hans Hagen
  2002-09-17 10:09   ` Gilbert van den Dobbelsteen
       [not found]   ` <Pine.LNX.4.30.0209171207470.5237-100000@panter.soci.aau.dk >
  0 siblings, 2 replies; 6+ messages in thread
From: Hans Hagen @ 2002-09-17  7:35 UTC (permalink / raw)
  Cc: ntg-context

At 09:20 AM 9/17/2002 +0200, you wrote:
>Perhaps this was discussed before, but I need to do something with tables
>and backgrounds (colors and stuff). But it didn't work! I used a simple
>example from core-tab:
>
>\starttabel[|c|c|c|]
>\HL
>\BC      \BC      \BL         \SR
>\VL test \VL test \VL test \VL\SR
>\HL
>\stoptabel
>
>This doesn't work!. In fact I need the longtables because they are bigger
>than 1 page, and I need alternating backgrounds (could use the natural
>tables for the latter, but it doesn't do the first). Well anyway, here's the
>log:

try \bTABLE ... \eTABLE instead

\setupcolors[state=start]
\setuplayout[height=8cm]
\setupTABLE[row][odd][background=color,backgroundcolor=red]
\setupTABLE[row][even][background=color,backgroundcolor=green]

\bTABLE[split=yes]
\bTR \bTD one   \eTD \bTD two  \eTD \eTR
\bTR \bTD three \eTD \bTD four \eTD \eTR
\bTR \bTD one   \eTD \bTD two  \eTD \eTR
\bTR \bTD three \eTD \bTD four \eTD \eTR
\bTR \bTD one   \eTD \bTD two  \eTD \eTR
\bTR \bTD three \eTD \bTD four \eTD \eTR
\bTR \bTD one   \eTD \bTD two  \eTD \eTR
\bTR \bTD three \eTD \bTD four \eTD \eTR
....
\eTABLE
-------------------------------------------------------------------------
                                   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
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------


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

end of thread, other threads:[~2002-09-17 12:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-17  7:20 Background cells in tables? Gilbert van den Dobbelsteen
     [not found] <Pine.LNX.4.30.0209170910170.3227-100000@panter.soci.aau.dk >
2002-09-17  7:35 ` Hans Hagen
2002-09-17 10:09   ` Gilbert van den Dobbelsteen
2002-09-17 11:48     ` Gilbert van den Dobbelsteen
     [not found]     ` <Pine.LNX.4.30.0209171342420.6448-100000@panter.soci.aau.dk >
2002-09-17 12:42       ` Hans Hagen
     [not found]   ` <Pine.LNX.4.30.0209171207470.5237-100000@panter.soci.aau.dk >
2002-09-17 12:38     ` 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).