Hans,
guess I didn't explain wel enough. Using Wolfgang's
TABLE module
\bTABLE
\bTABLEhead
\bTR
\bTH Group \eTH \bTH N \eTH \bTH MEAN \eTH \bTH STD \eTH \bTH MIN \eTH \bTH
MAX \eTH \bTH Gini \eTH \bTH 80/20 \eTH
\eTR
\eTABLEhead
\bTABLEbody
\bTR \bTC[nc=8] 1980 \eTC \eTR
.
..
.
lots and lots
Hi Barney,
On 2010-12-10 15:30:04, barney schwartz wrote:
Hans,
guess I didn't explain wel enough. Using Wolfgang's
TABLE module
\bTABLE
\bTABLEhead
\bTR
\bTH Group \eTH \bTH N \eTH \bTH MEAN \eTH \bTH STD \eTH \bTH MIN \eTH \bTH
MAX \eTH \bTH Gini \eTH \bTH 80/20 \eTH
\eTR
.
\placetable[here,split][tab:five]{Descriptive Statistics for Salaried Men \
Women}
{%\setupTABLE[split=repeat]
\bTABLE
\bTABLEhead
\bTR
\bTH Group \eTH \bTH N \eTH \bTH MEAN \eTH\bTH STD \eTH \bTH MIN
\eTH\bTH MAX \eTH \bTH Gini \eTH \bTH 80/20 \eTH
\eTR
\eTABLEhead
\bTABLEbody
\bTR
appears to be [nr=2] in
the head.
I am using
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009) (format=cont-en
2010.4.14) 6 DEC 2010 08:32
I do apologise if this is fixed in a later version. Thanks for a great program.
\bTABLE[split=repeat]
\bTABLEhead
\bTR
\bTH[nr=2] head l\eTH
\bTH
]
\bTABLEhead
\bTR
\bTH[nr=2] head l\eTH
\bTH head r\eTH
\eTR
\bTR
\bTH head r\eTH
\eTR
\eTABLEhead
\bTABLEbody
\bTR\bTD first l\eTD\bTD first r\eTD\eTR
\dorecurse{50}{\bTR\bTD subsequent l\eTD\bTD subsequent r\eTD\eTR}
\eTABLEbody
\eTABLE
put this in cont-new.tex:
\unprotect
\def\endtblrow
.
\bTABLE[split=repeat]
\bTABLEhead
\bTR
\bTH[nr=2] head l\eTH
\bTH head r\eTH
\eTR
\bTR
\bTH head r\eTH
\eTR
\eTABLEhead
\bTABLEbody
\bTR\bTD first l\eTD\bTD first r\eTD\eTR
\dorecurse{50}{\bTR\bTD subsequent l\eTD\bTD subsequent r\eTD\eTR}
\eTABLEbody
\eTABLE
put this in cont
, you can find
a overview of the different environments on the wiki.
Here is a example for a natural table:
\starttext
\setupTABLE[header][style=bold,background=color,backgroundcolor=gray]
\bTABLE
\bTABLEhead
\bTR
\bTD Colheader 1 \eTD
\bTD Colheader 2 \eTD
\eTR
,background=color,backgroundcolor=gray]
\bTABLE
\bTABLEhead
\bTR
\bTD Colheader 1 \eTD
\bTD Colheader 2 \eTD
\eTR
\eTBALEhead
\bTABLEbody
\bTR
\bTD cell 11 \eTD
\bTD cell 12 \eTD
\eTR
\bTR
\bTD cell 21 \eTD
\bTD cell 22 \eTD
,backgroundcolor=gray]
\bTABLE
\bTABLEhead
\bTR
\bTD Colheader 1 \eTD
\bTD Colheader 2 \eTD
\eTR
\eTBALEhead
with current minimal mkiv I get:
(/opt/context/tex/texmf-context/tex/context/base/bxml-apa.mkiv)
systems : begin file latex5.tex at line 3
)
Runaway argument
=bold,background=color,backgroundcolor=gray]
\bTABLE
\bTABLEhead
\bTR
\bTD Colheader 1 \eTD
\bTD Colheader 2 \eTD
\eTR
\eTBALEhead
with current minimal mkiv I get:
(/opt/context/tex/texmf-context/tex/context/base/bxml-apa.mkiv)
systems : begin file latex5.tex
table:
\starttext
\setupTABLE[header][style=bold,background=color,backgroundcolor=gray]
\bTABLE
\bTABLEhead
\bTR
\bTD Colheader 1 \eTD
\bTD Colheader 2 \eTD
\eTR
\eTBALEhead
Runaway argument?
\bTR \bTD Colheader 1 \eTD \bTD Colheader 2 \eTD \eTR \eTBALEhead
Am 11.11.2010 20:40, schrieb Manfred Lotz:
\starttext
\setupTABLE[header][style=bold,background=color,backgroundcolor=gray]
\bTABLE
\bTABLEhead
\bTR
\bTD Colheader 1 \eTD
\bTD Colheader 2 \eTD
\eTR
\eTBALEhead
\bTABLEbody
\bTR
\bTD cell 11 \eTD
=\textwidth]
\bTABLEhead
\bTR \bTH Name \eTH \bTH Vorname \eTH \bTH Email-Adresse \eTH \bTH Raum
\eTH \bTH Telefon \eTH \eTR
\eTABLEhead
\bTABLEbody
\bTR \bTD \xmltext{#1}{/Titel} \xmltext{#1}{/Name} \eTD \bTD
\xmltext{#1}{/Vorname} \eTD \bTD \xmltext{#1}{/Mail} \eTD \bTD
\xmltext{#1}{/Raum} \eTD \bTD
[row][*][width=\textwidth]
| \bTABLEhead
| \bTR
| \bTH Name \eTH
| \bTH Vorname \eTH
| \bTH Email-Adresse \eTH
| \bTH Raum \eTH
| \bTH Telefon \eTH
| \eTR
| \eTABLEhead
| \bTABLEbody
| \bTR
it in the parent element of multiple person elements, here
personal.
\startxmlsetups xml:personen:personal
\title{Personalverzeichnis}
\placelist[chapter]
\page
% open table
\bTABLE[split=yes,width=11em]
\setupTABLE[row][*][width=\textwidth]
\bTABLEhead
\bTR \bTH Name \eTH \bTH Vorname \eTH \bTH
\dorecurse{4}{\input knuth\par}
\startlinecorrection% fine without line correction
\bTABLE[split=yes] % fine with split=no
\bTABLEhead
\bTR\bTH p\eTH\bTH q\eTH\bTH p or q\eTH\eTR
\eTABLEhead
\bTABLEbody
\bTR\bTC False\eTC\bTC False\eTC\bTC False\eTC\eTR
\bTR\bTC True\eTC\bTC False\eTC\bTC True\eTC
% fine without line correction
\bTABLE[split=yes] % fine with split=no
\bTABLEhead
\bTR\bTH p\eTH\bTH q\eTH\bTH p or q\eTH\eTR
\eTABLEhead
\bTABLEbody
\bTR\bTC False\eTC\bTC False\eTC\bTC False\eTC\eTR
\bTR\bTC True\eTC\bTC False\eTC\bTC True\eTC\eTR
\bTR\bTC False\eTC\bTC True\eTC\bTC True
]
\starttext
\chapter{Chapter Name}
\dorecurse{3}{\input knuth\par}
\placetable[split]{Table Caption}%
{ \bTABLE[split=repeat]%
\bTABLEhead
\bTR\bTH Table Header \eTH\eTR
\eTABLEhead
\bTABLEbody
\dorecurse{10}{\bTR\bTD table row \eTD\eTR}
\eTABLEbody
\eTABLE}
\stoptext
, textwidth=3in]
\bTABLEhead[rulethickness=1pt]
\bTR
\bTH[align={middle}] head \eTH
\eTR
\eTABLEhead
\bTABLEbody
\dorecurse{6}{
\bTR
\bTD
{\input knuth \par}
\eTD
\eTR
}
\eTABLEbody
\bTABLEfoot
\bTR
\bTH footer
=repeat]\switchtobodyfont[5pt]
\bTABLEhead
\bTR
\bTH[nr=2] 1\eTH
\bTH[nr=2] 2\eTH
\bTH[nc=2] 3\eTH
\eTR
\bTR
\bTH 3a\eTH
\bTH 3b\eTH
\eTR
\eTABLEhead
\bTABLEbody
\bTR[color=red]
\bTD body\eTD
\bTD first\eTD
\bTD row\eTD
\bTD Should not repeat every page\eTD
\eTR
\dorecurse{55}{\bTR\bTD[nc=4]the first row
=stretch,aligncharacter=no,style={\switchtobodyfont[tt]},frame=off]%
\chardef\characteralignmentmode=2%
\bTABLEhead%
\bTR%
\bTH[nc=22]{\setupinterlinespace\strut}{\strut}\eTH%
\eTR%
\bTR%
\bTH[]{\setupinterlinespace\strut}{}\eTH%
\bTH[]{\setupinterlinespace\strut}{}\eTH%
\bTH[]{\setupinterlinespace\strut
Hello,
It would be very nice, if one could put splitted TABLEs in columns (or
column-sets) without restrictions:
text before columns
\startcolumns[n=X]
some text spanning 1 or more columns, 1 or more pages
\bTABLE[split=repeat]
\bTABLEhead \bTR \bTH Head \eTH \eTABLEhead
\bTABLEbody
Peter Münster wrote:
Hello,
It would be very nice, if one could put splitted TABLEs in columns (or
column-sets) without restrictions:
text before columns
\startcolumns[n=X]
some text spanning 1 or more columns, 1 or more pages
\bTABLE[split=repeat]
\bTABLEhead \bTR \bTH Head
to unitsquare xyscaled (OverlayWidth,OverlayHeight) ;
\stopuseMPgraphic
\defineoverlay[headerrule][\useMPgraphic{headerrule}]
\starttext
\bTABLE[split=repeat,frame=off,background=color]
\bTABLEhead
\bTR[bottomframe=on]
\bTR[background=headerrule,backgroundoffset=-\linewidth]
\bTH A \eTH \bTH B
--
\setupcolors[state=start]
\definecolor[ice][r=0.867, g=0.945, b=0.973, s=0.9]
\starttext
\bTABLE[split=repeat,frame=off,background=color]
\bTABLEhead
\bTR[bottomframe=on]
\bTH A \eTH \bTH B \eTH
\eTR
\eTABLEhead
\bTABLEbody
\dorecurse{25}{\bTR[backgroundcolor=ice] \bTD a \eTD \bTD b \eTD \eTR
Antropofagia -
www.eantropofagia.com.ar - [EMAIL PROTECTED]
\stopsetups
\starttext
\title Un tÃtulo cualquiera
\dorecurse{4}{\input tufte}
\bTABLE
\bTABLEhead
\bTR
\bTH Un tÃtulo cualquiera \eTH
\eTR
\eTABLEhead
\bTABLEbody
\bTR \bTD \dorecurse{4}{\input tufte}\eTD \eTR
\eTABLEbody
\eTABLE
[align={middle,lohi},width=6cm] middle \eTD
\bTD[align={left,lohi},width=4cm] right \eTD
\eTR
\eTABLE
\stopsetups
\starttext
\bTABLE[split=repeat,option=stretch,strut=no,offset=.5em]
\bTABLEhead[rulethickness=1pt]
\bTR
\bTH[align={middle,lohi},width=6cm] head \eTH
\eTR
\eTABLEhead
]{right} \stopsetups
\starttext
\bTABLE[split=repeat,option=stretch,strut=no,offset=.5em]
\bTABLEhead[rulethickness=1pt]
\bTR
\bTH[align={middle,lohi},width=6cm] head \eTH
\eTR
\eTABLEhead
\bTABLEbody%
%\dorecurse{1}{ % works
\dorecurse{10}{ % works NOT
\bTR
[settings]
\blank[size]
# \blockquote
\bookmark[name]{text}
# \bTABLE
# \bTABLEbody
# \bTABLEfoot
# \bTABLEhead
# \bTABLEnext
# \bTD
# \bTH
# \bTR
\but[reference]
\button[settings]{text}[references]
\bypassblocks[names][names]
\CAP{text}
\Cap{text}
\cap{text}
\Caps{text}
\chapter[references]{text
\tabulatetailcontent
\fi
\removefunnytabulateline}
%\tracetabulatetrue
\getbuffer[tabulate]
\page
%\traceTABLEtrue
\setupTABLE[split=repeat,frame=off]
\setupTABLE[header][topframe=on,bottomframe=on]
\setupTABLE[row][last][bottomframe=on]
\bTABLE
\bTABLEhead
\bTR\bTH Row 1 \eTH\bTH Row 2 \eTH\bTH Row 3
][topframe=on,bottomframe=on]
\setupTABLE[row][last][bottomframe=on]
\bTABLE
\bTABLEhead
\bTR\bTH Row 1 \eTH\bTH Row 2 \eTH\bTH Row 3 \eTH\eTR
\eTABLEhead
\bTABLEfoot
\bTR\bTD Row 1 \eTD\bTD Row 2 \eTD\bTD Row 3 \eTD\eTR
\eTABLEfoot
\bTABLEbody
\bTR\bTD Text \eTD\bTD Text \eTD\bTD Text
good men to come to the aid of their country.
\placetable[split]{Broken Split Table}{%
\bTABLE[split=repeat]
\bTABLEhead
\bTR
\bTH Header A \eTH
\bTH Header B \eTH
\eTR
\eTABLEhead
\bTABLEbody
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\bTR
\bTC A \eTC
\bTC B
good men to come to the aid of their country.
\blank[line,medium,force]
\bTABLE[split=repeat]
\bTABLEhead
\bTR
\bTH Header A \eTH
\bTH Header B \eTH
\eTR
\eTABLEhead
\bTABLEbody
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
\blank[line,medium,force]
\bTABLE[split=repeat]
\bTABLEhead
\bTR
\bTH Header A \eTH
,
background=color,
backgroundcolor=green]
\bTABLE[split=repeat,option=stretch]% head on every page, stretch columns
%
% IMPORTANT: use \bTH ... \eTH to enclose the head|next cells
\bTABLEhead
\bTR
\bTH head1 \eTH
\bTH head2 \eTH
\bTH head3 \eTH
\eTR
\eTABLEhead
%
\bTABLEnext % setup for next
=color,
backgroundcolor=green]
\bTABLE[split=repeat,option=stretch]% head on every page, stretch columns
%
% IMPORTANT: use \bTH ... \eTH to enclose the head|next cells
\bTABLEhead
\bTR
\bTH head1 \eTH
\bTH head2 \eTH
\bTH head3 \eTH
\eTR
\eTABLEhead
%
\bTABLEnext % setup
.
\placetable[split]{Broken Split Table}{%
\bTABLE[split=repeat]
\bTABLEhead
\bTR
\bTH Header A \eTH
\bTH Header B \eTH
\eTR
\eTABLEhead
\bTABLEbody
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC
{
Now is the time for all good men to come to the aid of their %
country. The quick brown fox jumped over the lazy dog.
}
\dorecurse{28}{\blah}
\placetable[split]{Broken Split Table}{
\setupTABLE[split=repeat]
\bTABLE
\bTABLEhead
\bTR[style=\bf]
\bTD Header A \eTD
\bTD Header B \eTD
]
\showframe
\starttext
\def\blah{
Now is the time for all good men to come to the aid of their %
country. The quick brown fox jumped over the lazy dog.
}
\dorecurse{28}{\blah}
\placetable[split]{Broken Split Table}{
\setupTABLE[split=repeat]
\bTABLE
\bTABLEhead
\bTR[style
over the lazy dog.
}
\dorecurse{28}{\blah}
\placetable[split]{Broken Split Table}{
\setupTABLE[split=repeat]
\bTABLE
\bTABLEhead
\bTR[style=\bf]
\bTD Header A \eTD
\bTD Header B \eTD
\eTR
\eTABLEhead
\bTABLEbody
\dorecurse{5}{
\bTR
\bTD A \eTD
\bTD B \eTD
\eTR
{
Now is the time for all good men to come to the aid of their %
country. The quick brown fox jumped over the lazy dog.
}
\dorecurse{28}{\blah}
\placetable[split]{Broken Split Table}{
\setupTABLE[split=repeat]
\bTABLE
\bTABLEhead
\bTR[style=\bf]
\bTD Header A \eTD
\bTD Header B \eTD
of their %
country. The quick brown fox jumped over the lazy dog.
}
\dorecurse{28}{\blah}
\placetable[split]{Broken Split Table}{
\setupTABLE[split=repeat]
\bTABLE
\bTABLEhead
\bTR[style=\bf]
\bTD Header A \eTD
\bTD Header B \eTD
\eTR
\eTABLEhead
\bTABLEbody
\dorecurse{5
, rotation=90]{%
\placetable[here][tab:religionen]{Götter}{\getbuffer[tab-religionen]}%
}
As you can guess, the whole table is in a buffer:
\startbuffer[tab-religionen]
\bTABLE[split=repeat]
\bTABLEhead
\bTR[bottomframe=on]\bTH Land \eTH\bTH Aspekt \eTH\bTH Aspekt \eTH
\bTH Aspekt \eTH\bTH Aspekt \eTH
.
% another failed attempt:
\rotate[width=\textheight, height=\textwidth, rotation=90]{%
\placetable[here][tab:religionen]{Götter}{\getbuffer[tab-religionen]}%
}
As you can guess, the whole table is in a buffer:
\startbuffer[tab-religionen]
\bTABLE[split=repeat]
\bTABLEhead
\bTR[bottomframe
][topframe=off]
\bTABLEhead
\bTR %dummy row
\bTH \eTH
\bTH \eTH
\bTH \eTH
\eTR
\bTR %first visible row
\bTH
{\bf Investment} \eTH
\bTH .. \eTH is only a abbreviation for \bTD[style=bold] ... \eTD, this
means your \bf is not neccessary.
\bTH
{\bf Portfolio } \eTH
\bTH
a multiline
effect thus:
\bTABLE [option=stretch,split=repeat]
\setupTABLE[r][1][height=0cm,width=0cm,frame=off]
\setupTABLE[c][1][width=1.7in]
\setupTABLE[r][2][bottomframe=off]
\setupTABLE[r][3][topframe=off]
\bTABLEhead
\bTR %dummy row
\bTH \eTH
\bTH \eTH
\bTH \eTH
\eTR
\bTR
\eTABLE
But if I convert the above data items to header items the run fails.
Specifically the following fails:
\setupTABLE[row][odd][background=color,backgroundcolor=red,
width=.2\textwidth]
\bTABLE[split=yes]
\bTABLEhead
\bTR \bTH[nr=3] 1 \eTH \bTH[nc=2] 2/3 \eTH \bTH[nr=3] 4 \eTH \eTR
\bTD 1 \eTD \bTD 2 \eTD \bTD 3 \eTD \bTD 4 \eTD \eTR
\eTABLE
But if I convert the above data items to header items the run fails.
Specifically the following fails:
\setupTABLE[row][odd][background=color,backgroundcolor=red,
width=.2\textwidth]
\bTABLE[split=yes]
\bTABLEhead
\bTR \bTH[nr
data items to header items the run fails.
Specifically the following fails:
\setupTABLE[row][odd][background=color,backgroundcolor=red,
width=.2\textwidth]
\bTABLE[split=yes]
\bTABLEhead
\bTR \bTH[nr=3] 1 \eTH \bTH[nc=2] 2/3 \eTH \bTH[nr=3] 4 \eTH \eTR
\bTR \bTH 2 \eTH \bTH 3 \eTH \eTR
\bTR \bTH 2
data items to header items the run fails.
Specifically the following fails:
\setupTABLE[row][odd][background=color,backgroundcolor=red,
width=.2\textwidth]
\bTABLE[split=yes]
\bTABLEhead
\bTR \bTH[nr=3] 1 \eTH \bTH[nc=2] 2/3 \eTH \bTH[nr=3] 4 \eTH \eTR
\bTR \bTH 2 \eTH \bTH 3 \eTH \eTR
\bTR \bTH 2
Hi John,
2007/2/20, John R. Culleton [EMAIL PROTECTED]:
The table runs ok with the headers omitted. There are 8 columns. But
when I add these headers it gives me an error. Here are the headers:
-
\bTABLEhead
Hi John,
John R. Culleton wrote:
The table runs ok with the headers omitted. There are 8 columns. But
when I add these headers it gives me an error. Here are the headers:
-
\bTABLEhead
\bTR
\bTD \eTD \bTD
\textheight]
\setupTABLE[c][5][width=0.4\textheight]
\bTABLE
\bTABLEhead
\bTR
\bTH[nc=5] \midaligned{Übung: Einschätzung der eigenen Erfahrung: Prüfen,
was wirkungsvoll ist} \eTH
\eTR
\eTABLEhead
\switchtobodyfont[small]
\bTABLEbody
\bTR
.
\bTR
\bTD[m=5] \eTD
\eTR
\eTABLEbody
\eTABLE
\setupTABLE[width=\textheight, height=\textwidth]
\setupTABLE[r][each][height=0.13\textwidth]
\setupTABLE[r][1,2][align=lohi, height=0.06\textwidth]
\setupTABLE[c][1,2,3,4][width=0.15\textheight]
\setupTABLE[c][5][width=0.4\textheight]
\bTABLE
\bTABLEhead
\bTR
\bTH[nc=5] \midaligned{Übung
\textwidth]
\setupTABLE[r][1,2][align=lohi, height=0.06\textwidth]
\setupTABLE[c][1,2,3,4][width=0.15\textheight]
\setupTABLE[c][5][width=0.4\textheight]
\rotate[rotation=270]
{\framed[offset=overlay,frame=off,background=color,backgroundcolor=lightgray]\bgroup
%\startbackground
\bTABLE
\bTABLEhead
}]
\setupTABLE[column][6][width=3cm, align={middle, middle}]
\startbuffer[cabeca]
\bTABLEhead
\bTR
\bTD[style=\bf,align={middle, middle}] COMPETÊNCIAS (o aluno deve
se capaz de:)
\eTD
\bTD[style=\bf,align={middle, middle}] CONTEÚDOS PROGRAMÁTICOS
without split=repeat
]
%
\bTABLEhead
\bTR
\bTH head1 \eTH
\bTH head2 \eTH
\eTR
\eTABLEhead
%
\bTABLEbody
%
\dorecurse{15}{%
\bTR
\bTC body \eTC
\bTC body \eTC
\eTR
}
%
\eTABLEbody
\eTABLE
\stoptext
___
ntg-context mailing list
ntg-context@ntg.nl
http
this used to work but doesn't since the (my) last update:
\starttext
\setupTABLE[split=repeat, frame=off]
\setupTABLE[c][1][align=right]
\setupTABLE[c][2][align=left, style=bf, width=4em]
\startcolumns[n=2, balance=no]
\bTABLE
\bTABLEhead
\bTR\bTD\bf Verzeichnis \eTD\bTD\hbox{Dateien}\eTD\eTR
Henning Hraban Ramm wrote:
this used to work but doesn't since the (my) last update:
\starttext
\setupTABLE[split=repeat, frame=off]
\setupTABLE[c][1][align=right]
\setupTABLE[c][2][align=left, style=bf, width=4em]
\startcolumns[n=2, balance=no]
\bTABLE
\bTABLEhead
\bTR\bTD\bf
this used to work but doesn't since the (my) last update:
\starttext
\setupTABLE[split=repeat, frame=off]
\setupTABLE[c][1][align=right]
\setupTABLE[c][2][align=left, style=bf, width=4em]
\startcolumns[n=2, balance=no]
\bTABLE
\bTABLEhead
\bTR\bTD\bf Verzeichnis \eTD\bTD\hbox{Dateien}\eTD\eTR
\XMLflush{floattitle}} \XMLflush{caption}}}
}
}
{
\setupTABLE[row][1][topframe=on]
\setupTABLE[row][last][bottomframe=on]
\bTABLE[frame=off,split=repeat,splitmethod=b,style={\switchtobodyfont[small]\setupinterlinespace[line=2.8ex]}]
\bTABLEhead\XMLflush
20\% of the baits analyzed (n=22).}
}
}
{
\setupTABLE[row][1][topframe=on]
\setupTABLE[row][last][bottomframe=on]
\bTABLE[frame=off,split=repeat,splitmethod=b,style={\switchtobodyfont[small]\setupinterlinespace[line=2.8ex]}]
\bTABLEhead
\bTR
][last][bottomframe=on]
\bTABLE[frame=off,split=repeat,splitmethod=b,style={\switchtobodyfont[small]\setupinterlinespace[line=2.8ex]}]
\bTABLEhead\XMLflush{header}\eTABLEhead
\bTABLEbody\XMLflush{body}\eTABLEbody
\bTABLEfoot\XMLflush{footer}\eTABLEfoot
\eTABLE
over pages if you use [split=repeat] together with a\
bTABLEhead...\eTABLEhead.
Using the \rotate command prevents breaking, Possibly you better use
\setuppapersize[a4,landscape][a4,landscape], which of course rotates
the whole layout including headers and footers.
I didn't think
with a\
bTABLEhead...\eTABLEhead.
Using the \rotate command prevents breaking, Possibly you better use
\setuppapersize[a4,landscape][a4,landscape], which of course rotates
the whole layout including headers and footers.
I am afraid, that once you include the table into a \placefigure
environment, breaking
.
In the following example, only two rows (the header and another one in the
body) have local bottomframe on, and the last row bottomframe is done with
table setup:
\starttext
\setupTABLE[frame=off]
\setupTABLE[row][last][rulethickness=0.90pt,bottomframe=on]
\bTABLE
\bTABLEhead
\bTR[bottomframe
,bottomframe=on]
\bTABLE
\bTABLEhead
\bTR[bottomframe=on]\bTH a \eTH\bTH b \eTH\eTR
\eTABLEhead
\bTABLEbody
\bTR\bTD bla \eTD\bTD bla \eTD\eTR
\bTR\bTD bla \eTD\bTD bla \eTD\eTR
\bTR\bTD bla \eTD\bTD bla \eTD\eTR
\bTR[bottomframe=on]\bTD bla \eTD\bTD bla \eTD\eTR
\bTR\bTD bla \eTD\bTD bla \eTD\eTR
]}]
\bTABLEhead\XMLflush{header}\eTABLEhead
\bTABLEbody\XMLflush{body}\eTABLEbody
\bTABLEfoot\XMLflush{footer}\eTABLEfoot
\eTABLE
}
}
\defineXMLnested
[tr]
[bottomframe=off,rulethickness=0.3pt]
{\expanded{\bTR[bottomframe=\XMLop{bottomframe
(rows columns)
;; Johan Sandblom 060128
Insert a TABLE skeleton
(interactive nNumber of rows: \nnNumber of columns: \n)
(newline)
(insert \\bTABLE\n\\setupTABLE\[\]\n)
;; First a TABLE header
(insert \\bTABLEhead\n\\bTR\\bTH \\eTH\n)
(let ((column 1))
(while ( column (- columns 1
)
(insert \\bTABLE\n\\setupTABLE\[\]\n)
;; First a TABLE header
(insert \\bTABLEhead\n\\bTR\\bTH \\eTH\n)
(let ((column 1))
(while ( column (- columns 1))
(insert \\bTH \\eTH\n)
(setq column (1+ column
(insert \\bTH \\eTH\\eTR\n\\eTABLEhead\n\\bTABLEbody\n
]
\bTABLEhead\bTR\bTH bla\eTH\eTR\eTABLEhead
\bTABLEbody\dorecurse{100}{\bTR\bTD bla\eTD\eTR}\eTABLEbody
\eTABLE
\stoptext
it's a boundary case: when the subsection is placed, the pagetotal is
pretty large because the previous page is not yet flushed, so ther eis
no room
bla \NC bla \NC\AR}
\stoptables
\stopcolumnset
\page
\input tufte
\section{Try with columns and TABLE}
\startcolumns[n=3]
\bTABLE[split=repeat]
\bTABLEhead \bTR \bTH A \eTH \bTH B \eTH \eTR \eTABLEhead
\bTABLEbody
\dorecurse{200}{\bTR \bTD bla \eTD \bTD bla \eTD \eTR}
\eTABLEbody
\eTABLE
,style={\switchtobodyfont[small]\setupinterlinespace[line=2.8ex]}]
\bTABLEhead\XMLflush{header}\eTABLEhead
\bTABLEbody\XMLflush{body}\eTABLEbody
\bTABLEfoot\XMLflush{footer}\eTABLEfoot
\eTABLE
}
}
\defineXMLnested
[tr]
[bottomframe=]
{\expanded{\bTR
}
\subsection{bla}
\synchronizeoutput % this does not help here...
\bTABLE[split=repeat]
\bTABLEhead\bTR\bTH bla\eTH\eTR\eTABLEhead
\bTABLEbody\dorecurse{100}{\bTR\bTD bla\eTD\eTR}\eTABLEbody
\eTABLE
\stoptext
Cheers, Peter
--
http://pmrb.free.fr/contact/
___
ntg
}}
\section{bla}
\subsection{bla}
\synchronizeoutput % this does not help here...
\bTABLE[split=repeat]
\bTABLEhead\bTR\bTH bla\eTH\eTR\eTABLEhead
\bTABLEbody\dorecurse{100}{\bTR\bTD bla\eTD\eTR}\eTABLEbody
\eTABLE
\stoptext
Cheers, Peter
it's a boundary case: when the subsection is placed
,distance=7.5pt,style={\switchtobodyfont[small]\setupinterlinespace[line=2.8ex]}]
\bTABLEhead\XMLflush{header}\eTABLEhead
\bTABLEbody\XMLflush{body}\eTABLEbody
\bTABLEfoot\XMLflush{footer}\eTABLEfoot
\eTABLE
}
}
\defineXMLnested
[tr]
[bottomframe=off
]
\defineXMLsave[body]
%\defineXMLnested[header]{\bTABLEhead} {\eTABLEhead}
%\defineXMLnested[body] {\bTABLEbody} {\eTABLEbody}
\placetable
[\XMLpar{table}{location}{here}]
[\XMLpar{table}{label}{unknown}]
{\XMLflush{caption}}
\bgroup
\setupTABLE[frame
]
%\defineXMLnested[header]{\bTABLEhead} {\eTABLEhead}
%\defineXMLnested[body] {\bTABLEbody} {\eTABLEbody}
\placetable
[\XMLpar{table}{location}{here}]
[\XMLpar{table}{label}{unknown}]
{\XMLflush{caption}}
\bgroup
\setupTABLE[frame=off,split=repeat,style={\switchtobodyfont
[bottomframe=\XMLop{bottomframe},rulethickness=\XMLop{rulethickness}]}}
{\eTR}
\defineXMLnested
[td]
[rows=1,cols=1]
{\bTD[nr=\XMLop{rows},nc=\XMLop{cols}]}
{\eTD}
But my endless quest for perfection would prefer something like
\expanded{\bTABLE[distance=10pt]\bTABLEhead\XMLflush{header}\eTABLEhead
Johannes Graumann wrote:
Hans,
With your help, I got this to work:
\defineXMLnested
[table]
{
\bgroup
\defineXMLsave[caption]
\defineXMLsave[header]
maybe :
\defineXMLnested[header]
{\bTABLEhead}
{\eTABLEhead}
\defineXMLsave[body]
}
{
\placetable
[\XMLpar{table
{\bTABLE[distance=10pt]\bTABLEhead\XMLflush{header}\eTABLEhead\bTABLEbody\XMLflush{body}\eTABLEbody}\eTABLE
, so I can read in a table like this AND have it spread over multiple pages:
table label=Name
caption
Semething
/caption
header
tr bottomframe=ontd rows=2Gene product/tdtd cols
Hello,
I have a problem with TABLE:
\starttext
\section{bla}
\subsection{bla}
\placefigure{bla}{\vbox to 16cm{bla}}
\section{bla}
\subsection{bla} % Table should begin here, but does not!
\bTABLE[split=repeat]
\bTABLEhead \bTR \bTH bla\eTH \eTR \eTABLEhead
\bTABLEbody \dorecurse{100}{\bTR\bTD bla
� wrote:
Hello,
I have a problem with TABLE:
\starttext
\section{bla}
\subsection{bla}
\placefigure{bla}{\vbox to 16cm{bla}}
\section{bla}
\subsection{bla} % Table should begin here, but does not!
\bTABLE[split=repeat]
\bTABLEhead \bTR \bTH bla\eTH \eTR \eTABLEhead
\bTABLEbody
}
\defineXMLnested
[table]
{\bgroup
\defineXMLsave[caption]
\defineXMLnested[header]{\bTABLEhead} {\eTABLEhead}
\defineXMLnested[body] {\bTABLEbody} {\eTABLEbody}
\placetable
[\XMLpar{table}{location}{here}]
[\XMLpar{table}{label}{unknown}]
{\XMLflush
,alignmentcharacter={.},aligncharacter=yes,align=middle]
% Header
\bTABLEhead
\bTR\bTD command \eTD\bTD meaning \eTD\bTD $\lambda$ (deg.) \eTD\eTR
\eTABLEhead
% Body
\bTABLEbody
\bTR\bTD \tex{NC}\eTD\bTD next column \eTD\bTD1.15 \eTD\eTR
\bTR
Hi all,
I have to build a table which should split over several columns
(probably two) and, if necessary, across pages.
I have tried this with
\starttext
\startcolumns[n=3]
\setupTABLE[split=yes]
\bTABLE
\bTABLEhead
\bTR \bTD Head \eTD \bTD Head~2
me
started. If someone could help me out, I'd be willing to try to
document them.
Hm, perhaps...
in http://source.contextgarden.net/core-ntb.tex
there's TABLE(head|foot|body|next) and (b|e)TH, maybe that does what
you need (didn't try)
I tried:
\bTABLEhead
...
\eTABLEhead
\bTABLEbody
,
thank you, this enables repetition of the heads. Unfortunately, the footer
does not get repeated. Here a minimal example:
\starttext
\bTABLE[split=repeat]
\bTABLEhead
\bTR \bTD top of the page \eTD \eTR
\eTABLEhead
\bTABLEfoot
\bTR \bTD bottom of the page \eTD \eTR
\eTABLEfoot
\bTABLEbody
for each
page? Is there any reference for this table type, I only found enattab.pdf
with some examples.
Here is some code, that I tried, but without success:
\starttext
\bTABLE[split=yes,splitmethod=a] % splitmethod=b gives an error
\bTABLEhead
\bTR \bTD top of the page \eTD \eTR
\eTABLEhead
]}}
{\doifelse{\foxtype}{column}
{\expanded{\setupTABLE[c][\foxc][\foxarguments]}}
{\expanded{\setupTABLE[\foxc][\foxr][\foxarguments]
\defineXMLnested [fx:thead] [fox] []
{\expanded{\bTABLEhead[\foxarguments]}} {\eTABLEhead}
\defineXMLnested [fx:tfoot] [fox
All,
I thought the following long table would split but it doesn't seem to
using the current beta. Am I missing something?
\starttext
This is a test of the \type{\TABLE} environment.
\bTABLE[split=yes]
\bTABLEhead
\bTR \bTH Head 1 \eTH \bTH Head 2 \eTH \eTR
\eTABLEhead
\bTABLEfoot
\bTR \bTH Foot
At 16:50 01/06/2004, you wrote:
All,
I thought the following long table would split but it doesn't seem to
using the current beta. Am I missing something?
\starttext
This is a test of the \type{\TABLE} environment.
\bTABLE[split=yes]
\bTABLEhead
\bTR \bTH Head 1 \eTH \bTH Head 2 \eTH \eTR
Henning Hraban Ramm schrieb:
Am Mittwoch, 15.10.03, um 10:36 Uhr (Europe/Zurich) schrieb Lutz
Haseloff:
how can i get repeated headers for a splitted
TABLE?
I tried to define \setupTABLE[split=yes]
and have \bTH \eTH in my header row.
\bTABLEhead
(header)
\eTABLEhead
\bTABLEtail
(footer
Am Donnerstag, 16.10.03, um 09:19 Uhr (Europe/Zurich) schrieb Lutz
Haseloff:
--
\setupTABLE[split=repeat]
\starttext
\bTABLE
\bTABLEhead
\bTR\bTD \bf Header \eTD \bTD \bf Header \eTD\bTD \bf Header \eTD\bTD
\bf Header\eTD\eTR
\eTABLEhead
\dorecurse{40}{\bTR\bTD Test\eTD \bTD period \eTD
Henning Hraban Ramm schrieb:
Am Donnerstag, 16.10.03, um 09:19 Uhr (Europe/Zurich) schrieb Lutz
Haseloff:
--
\setupTABLE[split=repeat]
\starttext
\bTABLE
\bTABLEhead
\bTR\bTD \bf Header \eTD \bTD \bf Header \eTD\bTD \bf Header \eTD\bTD
\bf Header\eTD\eTR
\eTABLEhead
\dorecurse{40}{\bTR
Am Mittwoch, 15.10.03, um 10:36 Uhr (Europe/Zurich) schrieb Lutz
Haseloff:
how can i get repeated headers for a splitted
TABLE?
I tried to define \setupTABLE[split=yes]
and have \bTH \eTH in my header row.
\bTABLEhead
(header)
\eTABLEhead
\bTABLEtail
(footer)
\eTABLEtail
\bTABLE[split=repeat
101 - 196 of 196 matches
Mail list logo