summaryrefslogtreecommitdiff
path: root/tex/context/base/core-tbl.tex
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2002-04-17 00:00:00 +0200
committerHans Hagen <pragma@wxs.nl>2002-04-17 00:00:00 +0200
commit64f02e3e5cbd20af19a0089553db5ee5c7d5eca1 (patch)
treeeb1ec97588f7ba468d649d8ca57812860e88618d /tex/context/base/core-tbl.tex
parent953aec80be6e084ee21459d3618af2221fc5df08 (diff)
downloadcontext-64f02e3e5cbd20af19a0089553db5ee5c7d5eca1.tar.gz
stable 2002.04.17
Diffstat (limited to 'tex/context/base/core-tbl.tex')
-rw-r--r--tex/context/base/core-tbl.tex52
1 files changed, 39 insertions, 13 deletions
diff --git a/tex/context/base/core-tbl.tex b/tex/context/base/core-tbl.tex
index fbba941f5..7d7dba09e 100644
--- a/tex/context/base/core-tbl.tex
+++ b/tex/context/base/core-tbl.tex
@@ -495,11 +495,11 @@
{\copyparameters
[\??tt#1::][\??tt\e!tabulate::]%
[\c!afstand,\c!eenheid,\c!voor,\c!korps,\c!na,\c!binnen,\c!inspringen,
- \c!uitlijnen,\c!lijnkleur,\c!lijndikte,EQ]}%
+ \c!marge,\c!uitlijnen,\c!lijnkleur,\c!lijndikte,EQ]}%
\copyparameters
[\??tt#1::#2][\??tt#1::]%
[\c!eenheid,\c!afstand,\c!voor,\c!korps,\c!na,\c!binnen,\c!inspringen,
- \c!uitlijnen,\c!lijnkleur,\c!lijndikte,EQ]%
+ \c!marge,\c!uitlijnen,\c!lijnkleur,\c!lijndikte,EQ]%
\setvalue{\e!start#1::#2}{\dofinalstarttabulate[#1][#2][#3]}%
\setvalue{\e!start#1}{\bgroup\dosubstarttabulate[#1]}%
\letvalue{\??tt#1\v!hoofd}\empty
@@ -521,15 +521,29 @@
% {\@EA\let\@EA\tabulatetailcontent\csname\??tt\currenttabulate\v!voet\endcsname}
% {\let\tabulatetailcontent\empty}}
+% \def\checkfulltabulatecontent
+% {\doifdefinedelse{\??tt\currenttabulate\v!hoofd}
+% {\@EA\let\@EA\tabulateheadcontent
+% \csname\??tt\currenttabulate\v!hoofd\endcsname}
+% {\let\tabulateheadcontent\empty}%
+% \doifdefinedelse{\??tt\currenttabulate\v!voet}
+% {\@EA\let\@EA\tabulatetailcontent
+% \csname\??tt\currenttabulate\v!voet\endcsname}
+% {\let\tabulatetailcontent\empty}}
+
\def\checkfulltabulatecontent
- {\doifdefinedelse{\??tt\currenttabulate\v!hoofd}
- {\@EA\let\@EA\tabulateheadcontent
- \csname\??tt\currenttabulate\v!hoofd\endcsname}
- {\let\tabulateheadcontent\empty}%
- \doifdefinedelse{\??tt\currenttabulate\v!voet}
- {\@EA\let\@EA\tabulatetailcontent
- \csname\??tt\currenttabulate\v!voet\endcsname}
- {\let\tabulatetailcontent\empty}}
+ {\ifundefined{\??tt\currenttabulate\v!hoofd}%
+ \let\tabulateheadcontent\empty
+ \else
+ \@EA\let\@EA\tabulateheadcontent
+ \csname\??tt\currenttabulate\v!hoofd\endcsname
+ \fi
+ \ifundefined{\??tt\currenttabulate\v!voet}%
+ \let\tabulatetailcontent\empty
+ \else
+ \@EA\let\@EA\tabulatetailcontent
+ \csname\??tt\currenttabulate\v!voet\endcsname
+ \fi}
\newconditional\tabulatesomeamble
@@ -641,8 +655,11 @@
% 1 = RC column raw RQ equal column raw
% 2 = HC column hook HQ equal column hook
+\newif\iftabulatefirstflushed
+
\def\tabulateEQ%
- {\getvalue{\??tt\currenttabulate EQ}\global\tabulateequalfalse}
+ {\iftabulatefirstflushed\else\getvalue{\??tt\currenttabulate EQ}\fi
+ \global\tabulateequalfalse}
\def\tabulatenormalcolumn#1%
{&\iftabulateequal\tabulateEQ\fi&\global\chardef\tabulatetype#1&}
@@ -730,6 +747,7 @@
\def\NG{\NC\handletabulatecharalign}%
\def\NR% next row
{\doglobal\increment\noftabulatelines
+ \global\tabulatefirstflushedfalse
\global\tabulateequalfalse
\xdef\tabulatecolumn{0}%
\resettabulatepheight
@@ -751,7 +769,13 @@
\global\let\flushtabulated\empty
\let\savedbar=|\let|=\nexttabulate
\tabskip\zeropoint
+\ifdim\getvalue{\??tt\currenttabulate\c!marge}>\zeropoint
+ \!!toksa{&\hbox to \tabulateindent{}##%
+ \tabskip\getvalue{\??tt\currenttabulate\c!marge}\strut
+ &##\tabskip\zeropoint}%
+\else
\!!toksa{&\hbox to \tabulateindent{}##\strut&##}%
+\fi
\tabulatewidth\zeropoint
|#1X|\relax
\tabulatewidth\zeropoint
@@ -829,10 +853,11 @@
\dorecurse\tabulatecolumns % was: \noftabcolumns
{\ifvoid\csname\@@tabbox@@\recurselevel\endcsname\else
\gdef\flushtabulatedindeed{\the\tabulatedummy}%
- \fi}}%
+ \fi}
+ \global\tabulatefirstflushedtrue}%
\flushtabulatedindeed}%
\else
- % tabhook op alles ?
+ % tabhook op alles ?
\def\bskip%
{\vtop\bgroup
\ifautotabulate\hsize\tabulatewidth\fi
@@ -920,6 +945,7 @@
\c!na=\blanko,
\c!afstand={\v!diepte,\v!middel},
\c!uitlijnen=\v!normaal,
+ \c!marge=\!!zeropoint,
\c!inspringen=\v!nee]
\protect \endinput