summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/cals/test/span
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/cals/test/span')
-rw-r--r--Master/texmf-dist/doc/latex/cals/test/span/test_10_queue.chk5
-rw-r--r--Master/texmf-dist/doc/latex/cals/test/span/test_10_queue.tex10
-rw-r--r--Master/texmf-dist/doc/latex/cals/test/span/test_20_decor.chk84
-rw-r--r--Master/texmf-dist/doc/latex/cals/test/span/test_20_decor.tex31
-rw-r--r--Master/texmf-dist/doc/latex/cals/test/span/test_30_iftlrb.chk16
-rw-r--r--Master/texmf-dist/doc/latex/cals/test/span/test_30_iftlrb.tex15
-rw-r--r--Master/texmf-dist/doc/latex/cals/test/span/test_40_lr_queue.chk14
-rw-r--r--Master/texmf-dist/doc/latex/cals/test/span/test_40_lr_queue.tex28
-rw-r--r--Master/texmf-dist/doc/latex/cals/test/span/test_50_dimen.chk38
-rw-r--r--Master/texmf-dist/doc/latex/cals/test/span/test_50_dimen.tex40
-rw-r--r--Master/texmf-dist/doc/latex/cals/test/span/test_60_content.chk16
-rw-r--r--Master/texmf-dist/doc/latex/cals/test/span/test_60_content.tex15
-rw-r--r--Master/texmf-dist/doc/latex/cals/test/span/test_70_intercept.chk16
-rw-r--r--Master/texmf-dist/doc/latex/cals/test/span/test_70_intercept.tex28
-rw-r--r--Master/texmf-dist/doc/latex/cals/test/span/test_80_marker.chk20
-rw-r--r--Master/texmf-dist/doc/latex/cals/test/span/test_80_marker.tex35
16 files changed, 411 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/cals/test/span/test_10_queue.chk b/Master/texmf-dist/doc/latex/cals/test/span/test_10_queue.chk
new file mode 100644
index 00000000000..252d5cead34
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cals/test/span/test_10_queue.chk
@@ -0,0 +1,5 @@
+> \cals@spanq@heights=macro:
+->{20.0pt}{40.0pt}.
+> \cals@spanq@heights=macro:
+->{40.0pt}.
+> 20.0pt.
diff --git a/Master/texmf-dist/doc/latex/cals/test/span/test_10_queue.tex b/Master/texmf-dist/doc/latex/cals/test/span/test_10_queue.tex
new file mode 100644
index 00000000000..742dbd88127
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cals/test/span/test_10_queue.tex
@@ -0,0 +1,10 @@
+\cals@span@height=20pt
+\cals@span@put
+\cals@span@height=40pt
+\cals@span@put
+\show\cals@spanq@heights
+%
+\cals@span@height=0pt
+\cals@span@get
+\show\cals@spanq@heights
+\showthe\cals@span@height
diff --git a/Master/texmf-dist/doc/latex/cals/test/span/test_20_decor.chk b/Master/texmf-dist/doc/latex/cals/test/span/test_20_decor.chk
new file mode 100644
index 00000000000..5044b94ca62
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cals/test/span/test_20_decor.chk
@@ -0,0 +1,84 @@
+%
+% Test 1
+%
+> \boxXX=
+\hbox(0.0+0.0)x260.0
+% column 1
+.\pdfcolorstack 0 push {1 0 0 rg 1 0 0 RG}
+.\rule(*+0.0)x50.0
+.\pdfcolorstack 0 pop
+.\glue -50.0
+.\glue -4.0
+.\rule(*+0.0)x8.0
+.\glue -4.0
+.\glue 50.0
+% column 2
+.\pdfcolorstack 0 push {1 0 0 rg 1 0 0 RG}
+.\rule(*+0.0)x60.0
+.\pdfcolorstack 0 pop
+.\glue -60.0
+.\glue 60.0
+% column 3
+.\pdfcolorstack 0 push {1 0 0 rg 1 0 0 RG}
+.\rule(*+0.0)x70.0
+.\pdfcolorstack 0 pop
+.\glue -70.0
+.\glue 70.0
+% column 4
+.\pdfcolorstack 0 push {1 0 0 rg 1 0 0 RG}
+.\rule(*+0.0)x80.0
+.\pdfcolorstack 0 pop
+.\glue -80.0
+.\glue 80.0
+.\glue -2.0
+.\rule(*+0.0)x4.0
+.\glue -2.0
+%
+> \cals@current@rs@above=macro:
+->{{50pt}{8pt}{0pt}{2pt}}{{60pt}{0pt}{0pt}{2pt}}{{70pt}{0pt}{0pt}{0pt}}{{80pt}{
+0pt}{4pt}{2pt}}.
+> \cals@current@rs@below=macro:
+->{{50pt}{8pt}{0pt}{6pt}}{{60pt}{0pt}{0pt}{6pt}}{{70pt}{0pt}{0pt}{0pt}}{{80pt}{
+0pt}{4pt}{6pt}}.
+%
+% Test 2
+%
+> \boxXX=
+\hbox(0.0+0.0)x260.0
+% column 1
+.\pdfcolorstack 0 push {0 1 0 rg 0 1 0 RG}
+.\rule(*+0.0)x50.0
+.\pdfcolorstack 0 pop
+.\glue -50.0
+.\glue -3.5
+.\rule(*+0.0)x7.0
+.\glue -3.5
+.\glue 50.0
+% column 2
+.\pdfcolorstack 0 push {0 1 0 rg 0 1 0 RG}
+.\rule(*+0.0)x60.0
+.\pdfcolorstack 0 pop
+.\glue -60.0
+.\glue 60.0
+% column 3
+.\pdfcolorstack 0 push {0 1 0 rg 0 1 0 RG}
+.\rule(*+0.0)x70.0
+.\pdfcolorstack 0 pop
+.\glue -70.0
+.\glue 70.0
+% column 4
+.\pdfcolorstack 0 push {0 1 0 rg 0 1 0 RG}
+.\rule(*+0.0)x80.0
+.\pdfcolorstack 0 pop
+.\glue -80.0
+.\glue 80.0
+.\glue -1.5
+.\rule(*+0.0)x3.0
+.\glue -1.5
+%
+> \cals@current@rs@above=macro:
+->{{50pt}{7pt}{0pt}{1pt}}{{60pt}{0pt}{0pt}{0pt}}{{70pt}{0pt}{0pt}{1pt}}{{80pt}{
+0pt}{3pt}{1pt}}.
+> \cals@current@rs@below=macro:
+->{{50pt}{7pt}{0pt}{5pt}}{{60pt}{0pt}{0pt}{0pt}}{{70pt}{0pt}{0pt}{5pt}}{{80pt}{
+0pt}{3pt}{5pt}}.
diff --git a/Master/texmf-dist/doc/latex/cals/test/span/test_20_decor.tex b/Master/texmf-dist/doc/latex/cals/test/span/test_20_decor.tex
new file mode 100644
index 00000000000..99794bea815
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cals/test/span/test_20_decor.tex
@@ -0,0 +1,31 @@
+\colwidths{{50pt}{60pt}{70pt}{80pt}}
+
+\def\cals@borderT{2pt}
+\def\cals@borderR{4pt}
+\def\cals@borderB{6pt}
+\def\cals@borderL{8pt}
+\def\cals@bgcolor{red}
+\cals@decor@begin
+\nullcell{ltb}
+\nullcell{tb}
+\nullcell{}
+\nullcell{tbr}
+\cals@decor@end\cals@lastWidth
+\showbox\cals@current@cs
+\show\cals@current@rs@above
+\show\cals@current@rs@below
+
+\def\cals@borderT{1pt}
+\def\cals@borderR{3pt}
+\def\cals@borderB{5pt}
+\def\cals@borderL{7pt}
+\def\cals@bgcolor{green}
+\cals@decor@begin
+\nullcell{ltb}
+\nullcell{}
+\nullcell{tb}
+\nullcell{tbr}
+\cals@decor@end\cals@lastWidth
+\showbox\cals@current@cs
+\show\cals@current@rs@above
+\show\cals@current@rs@below
diff --git a/Master/texmf-dist/doc/latex/cals/test/span/test_30_iftlrb.chk b/Master/texmf-dist/doc/latex/cals/test/span/test_30_iftlrb.chk
new file mode 100644
index 00000000000..372fdc10041
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cals/test/span/test_30_iftlrb.chk
@@ -0,0 +1,16 @@
+> \cals@span@ifL=macro:
+#1->\iftrue .
+> \cals@span@ifT=macro:
+#1->\iffalse .
+> \cals@span@ifR=macro:
+#1->\iftrue .
+> \cals@span@ifB=macro:
+#1->\iffalse .
+> \cals@span@ifL=macro:
+#1->\iffalse .
+> \cals@span@ifT=macro:
+#1->\iftrue .
+> \cals@span@ifR=macro:
+#1->\iffalse .
+> \cals@span@ifB=macro:
+#1->\iftrue .
diff --git a/Master/texmf-dist/doc/latex/cals/test/span/test_30_iftlrb.tex b/Master/texmf-dist/doc/latex/cals/test/span/test_30_iftlrb.tex
new file mode 100644
index 00000000000..a67bdc93a69
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cals/test/span/test_30_iftlrb.tex
@@ -0,0 +1,15 @@
+\def\cals@spanq@heights{{0pt}}
+\def\cals@lastWidth{0pt}
+\brow
+
+\nullcell{lr}
+\show\cals@span@ifL
+\show\cals@span@ifT
+\show\cals@span@ifR
+\show\cals@span@ifB
+\def\cals@lastWidth{0pt}
+\nullcell{tb}
+\show\cals@span@ifL
+\show\cals@span@ifT
+\show\cals@span@ifR
+\show\cals@span@ifB
diff --git a/Master/texmf-dist/doc/latex/cals/test/span/test_40_lr_queue.chk b/Master/texmf-dist/doc/latex/cals/test/span/test_40_lr_queue.chk
new file mode 100644
index 00000000000..ca1abf2ce23
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cals/test/span/test_40_lr_queue.chk
@@ -0,0 +1,14 @@
+> \cals@spanq@heights=macro:
+->.
+> \cals@spanq@heights=macro:
+->{20.0pt}.
+> \cals@spanq@heights=macro:
+->{20.0pt}.
+%
+> 40.0pt.
+> 0.0pt.
+> \cals@spanq@heights=macro:
+->{20.0pt}.
+> 20.0pt.
+> \cals@spanq@heights=macro:
+->.
diff --git a/Master/texmf-dist/doc/latex/cals/test/span/test_40_lr_queue.tex b/Master/texmf-dist/doc/latex/cals/test/span/test_40_lr_queue.tex
new file mode 100644
index 00000000000..a25633a68b4
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cals/test/span/test_40_lr_queue.tex
@@ -0,0 +1,28 @@
+\def\cals@lastWidth{2pt}
+\def\cals@rs@spec@ll{2pt}
+\def\cals@rs@spec@bl{2pt}
+\def\cals@rs@spec@bt{2pt}
+\def\cals@current@rs@above{}
+\def\cals@current@rs@below{}
+%
+\colwidths{{100pt}{200pt}{300pt}}
+%
+\cals@span@height=20pt \relax
+\show\cals@spanq@heights
+\brow\def\cals@lastWidth{0pt}
+\nullcell{tr}
+\show\cals@spanq@heights
+\brow\def\cals@lastWidth{0pt}
+\nullcell{br}
+\show\cals@spanq@heights
+%
+\cals@span@height=40pt \relax
+\showthe\cals@span@height
+\let\cals@borderL=\relax \brow\def\cals@lastWidth{0pt}
+\nullcell{lt}
+\showthe\cals@span@height
+\show\cals@spanq@heights
+\brow\def\cals@lastWidth{0pt}
+\nullcell{bl}
+\showthe\cals@span@height
+\show\cals@spanq@heights
diff --git a/Master/texmf-dist/doc/latex/cals/test/span/test_50_dimen.chk b/Master/texmf-dist/doc/latex/cals/test/span/test_50_dimen.chk
new file mode 100644
index 00000000000..9a079aead07
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cals/test/span/test_50_dimen.chk
@@ -0,0 +1,38 @@
+> \boxXX=
+\hbox(0.0+0.0)x60.0
+.\vbox(0.0+0.0)x10.0
+..\hbox(0.0+0.0)x10.0
+..\glue 0.0 plus 1.0fil
+.\vbox(0.0+0.0)x20.0
+..\hbox(0.0+0.0)x20.0
+..\glue 0.0 plus 1.0fil
+.\vbox(0.0+0.0)x30.0
+..\hbox(0.0+0.0)x30.0
+..\glue 0.0 plus 1.0fil
+> \cals@spanq@heights=macro:
+->{0.0pt}.
+%
+> \boxXX=
+\hbox(0.0+0.0)x60.0
+.\vbox(0.0+0.0)x10.0
+..\hbox(0.0+0.0)x10.0
+..\glue 0.0 plus 1.0fil
+.\vbox(0.0+0.0)x20.0
+..\hbox(0.0+0.0)x20.0
+..\glue 0.0 plus 1.0fil
+.\vbox(0.0+0.0)x30.0
+..\hbox(0.0+0.0)x30.0
+..\glue 0.0 plus 1.0fil
+> \cals@spanq@heights=macro:
+->{40.0pt}.
+%
+> \boxXX=
+\hbox(0.0+0.0)x0.0
+> \cals@spanq@heights=macro:
+->.
+> 60.0pt.
+> 90.0pt.
+%
+% Bug
+%
+> 60.0pt.
diff --git a/Master/texmf-dist/doc/latex/cals/test/span/test_50_dimen.tex b/Master/texmf-dist/doc/latex/cals/test/span/test_50_dimen.tex
new file mode 100644
index 00000000000..f6e0b28a560
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cals/test/span/test_50_dimen.tex
@@ -0,0 +1,40 @@
+\colwidths{{10pt}{20pt}{30pt}}
+\cals@last@row@height=1000pt %
+%
+\brow
+\nullcell{tl}
+\nullcell{t}
+\nullcell{tr}
+%\erow
+\cals@last@row@height=40pt %
+\showbox\cals@current@row
+\show\cals@spanq@heights
+
+\brow
+\nullcell{l}
+\nullcell{}
+\nullcell{r}
+%\erow
+\cals@last@row@height=50pt %
+\showbox\cals@current@row
+\show\cals@spanq@heights
+
+
+\brow
+\nullcell{lb}
+\nullcell{b}
+\nullcell{br}
+%\erow
+\showbox\cals@current@row
+\show\cals@spanq@heights
+\showthe\cals@span@width
+\showthe\cals@span@height
+
+%
+% Bug was here
+%
+\brow
+\nullcell{ltb}
+\nullcell{tb}
+\nullcell{btr}
+\showthe\cals@span@width
diff --git a/Master/texmf-dist/doc/latex/cals/test/span/test_60_content.chk b/Master/texmf-dist/doc/latex/cals/test/span/test_60_content.chk
new file mode 100644
index 00000000000..0c523e3b33b
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cals/test/span/test_60_content.chk
@@ -0,0 +1,16 @@
+> \boxXX=
+\hbox(10.0+0.0)x100.0
+.\vbox(10.0+0.0)x100.0
+..\glue -30.0
+..\glue 14.0
+..\glue 0.0 plus -1.0
+..\glue(\parskip) 0.0 plus 1.0
+..\glue(\baselineskip) 6.0
+..\hbox(3.0+2.0)x100.0, glue set 74.0fil
+...\glue(\leftskip) 12.0
+...\rule(3.0+2.0)x1.0
+...\penalty 10000
+...\glue(\parfillskip) 0.0 plus 1.0fil
+...\glue(\rightskip) 13.0
+..\glue 0.0 plus 1.0fil
+..\glue 15.0
diff --git a/Master/texmf-dist/doc/latex/cals/test/span/test_60_content.tex b/Master/texmf-dist/doc/latex/cals/test/span/test_60_content.tex
new file mode 100644
index 00000000000..0bc32f86246
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cals/test/span/test_60_content.tex
@@ -0,0 +1,15 @@
+\setlength{\cals@paddingL}{12pt}
+\setlength{\cals@paddingR}{13pt}
+\setlength{\cals@paddingT}{14pt}
+\setlength{\cals@paddingB}{15pt}
+
+\setlength{\cals@paddingD}{1pt}
+\setlength{\baselineskip}{10pt}
+
+\setbox\cals@current@row=\hbox{}
+
+\cals@span@width=100pt
+\cals@span@height=30pt
+
+\spancontent{\noindent \vrule height3pt depth2pt width1pt}
+\showbox\cals@current@row
diff --git a/Master/texmf-dist/doc/latex/cals/test/span/test_70_intercept.chk b/Master/texmf-dist/doc/latex/cals/test/span/test_70_intercept.chk
new file mode 100644
index 00000000000..14db368f2c5
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cals/test/span/test_70_intercept.chk
@@ -0,0 +1,16 @@
+% row 1
+> \cals@spanq@heights=macro:
+->{0.0pt}.
+% row 2
+> \cals@spanq@heights=macro:
+->{0.0pt}{0.0pt}.
+> \cals@spanq@heights=macro:
+->{0.0pt}{50.0pt}.
+% row 3
+> \cals@spanq@heights=macro:
+->{50.0pt}{50.0pt}.
+> \cals@spanq@heights=macro:
+->{50.0pt}.
+% row 4
+> \cals@spanq@heights=macro:
+->.
diff --git a/Master/texmf-dist/doc/latex/cals/test/span/test_70_intercept.tex b/Master/texmf-dist/doc/latex/cals/test/span/test_70_intercept.tex
new file mode 100644
index 00000000000..3052794b06a
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cals/test/span/test_70_intercept.tex
@@ -0,0 +1,28 @@
+%
+% Bug hunting / regresion test
+%
+\begin{calstable}
+\colwidths{{50pt}}
+\cals@setpadding{}\cals@setcellprevdepth{}
+
+\brow
+ \cell{\noindent\vrule height50pt depth0pt width10pt}
+ \cell{\noindent\vrule height50pt depth0pt width10pt}
+ \nullcell{tlr}\show\cals@spanq@heights
+ \erow
+\brow
+ \cell{\noindent\vrule height50pt depth0pt width10pt}
+ \nullcell{tlr}\show\cals@spanq@heights
+ \nullcell{lr}\show\cals@spanq@heights
+ \erow
+\brow
+ \cell{\noindent\vrule height50pt depth0pt width10pt}
+ \nullcell{lr}\show\cals@spanq@heights
+ \nullcell{rlb}\spancontent{\noindent\vrule height50pt depth0pt width10pt}\show\cals@spanq@heights
+ \erow
+\brow
+ \cell{\noindent\vrule height50pt depth0pt width10pt}
+ \nullcell{lrb}\spancontent{\noindent\vrule height50pt depth0pt width10pt}\show\cals@spanq@heights
+ \cell{\noindent\vrule height50pt depth0pt width10pt}
+ \erow
+\end{calstable}
diff --git a/Master/texmf-dist/doc/latex/cals/test/span/test_80_marker.chk b/Master/texmf-dist/doc/latex/cals/test/span/test_80_marker.chk
new file mode 100644
index 00000000000..134fccb3bda
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cals/test/span/test_80_marker.chk
@@ -0,0 +1,20 @@
+% 1
+> \cals@ifInRspan=macro:
+#1->\iffalse .
+> the letter L.
+% 2
+> \cals@ifInRspan=macro:
+#1->\iftrue .
+> the letter X.
+% 3
+> \cals@ifInRspan=macro:
+#1->\iftrue .
+> the letter X.
+% 4
+> \cals@ifInRspan=macro:
+#1->\iftrue .
+> the letter L.
+% 5
+> \cals@ifInRspan=macro:
+#1->\iffalse .
+> the letter L.
diff --git a/Master/texmf-dist/doc/latex/cals/test/span/test_80_marker.tex b/Master/texmf-dist/doc/latex/cals/test/span/test_80_marker.tex
new file mode 100644
index 00000000000..d97f3944b93
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cals/test/span/test_80_marker.tex
@@ -0,0 +1,35 @@
+\begin{calstable}
+\colwidths{{100pt}{100pt}}
+
+\brow
+\nullcell{ltb}\nullcell{rtb}\spancontent{row1}
+\show\cals@ifInRspan
+\cals@ifLastRspanRow\iftrue \show L \else \show X \fi
+\erow
+
+\brow
+\nullcell{ltr}\cell{r2}
+\show\cals@ifInRspan
+\cals@ifLastRspanRow\iftrue \show L \else \show X \fi
+\erow
+
+\brow
+\nullcell{lbr}\spancontent{r3}\nullcell{ltr}
+\show\cals@ifInRspan
+\cals@ifLastRspanRow\iftrue \show L \else \show X \fi
+\erow
+
+\brow
+\cell{r3}\nullcell{lbr}\spancontent{r4}
+\show\cals@ifInRspan
+\cals@ifLastRspanRow\iftrue \show L \else \show X \fi
+\erow
+
+\brow
+\cell{r4c1}
+\cell{r4c2}
+\show\cals@ifInRspan
+\cals@ifLastRspanRow\iftrue \show L \else \show X \fi
+\erow
+
+\end{calstable}