summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/cals/test/cell
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-10-08 22:55:52 +0000
committerKarl Berry <karl@freefriends.org>2010-10-08 22:55:52 +0000
commit0defb3a486d0ea4acc281201f2fe3dfb1fe58677 (patch)
treeb131bfc838dce3c5248b8cafc79728ca2ea348ee /Master/texmf-dist/doc/latex/cals/test/cell
parent642d21e6f53417257b6ff173b9216d3862139fe1 (diff)
new latex pkg cals (8oct01)
git-svn-id: svn://tug.org/texlive/trunk@20025 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/cals/test/cell')
-rw-r--r--Master/texmf-dist/doc/latex/cals/test/cell/test_10_create.chk45
-rw-r--r--Master/texmf-dist/doc/latex/cals/test/cell/test_10_create.tex22
-rw-r--r--Master/texmf-dist/doc/latex/cals/test/cell/test_20_colwidth.chk10
-rw-r--r--Master/texmf-dist/doc/latex/cals/test/cell/test_20_colwidth.tex9
-rw-r--r--Master/texmf-dist/doc/latex/cals/test/cell/test_30_decor.chk38
-rw-r--r--Master/texmf-dist/doc/latex/cals/test/cell/test_30_decor.tex29
-rw-r--r--Master/texmf-dist/doc/latex/cals/test/cell/test_40_width.chk26
-rw-r--r--Master/texmf-dist/doc/latex/cals/test/cell/test_40_width.tex15
-rw-r--r--Master/texmf-dist/doc/latex/cals/test/cell/test_50_hooks.chk4
-rw-r--r--Master/texmf-dist/doc/latex/cals/test/cell/test_50_hooks.tex12
10 files changed, 210 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/cals/test/cell/test_10_create.chk b/Master/texmf-dist/doc/latex/cals/test/cell/test_10_create.chk
new file mode 100644
index 00000000000..e30f50c4cd1
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cals/test/cell/test_10_create.chk
@@ -0,0 +1,45 @@
+> \boxXX=
+\vbox(40.0+0.0)x200.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)x200.0, glue set 174.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
+> \boxXX=
+\vbox(-60.0+0.0)x200.0
+.\glue -100.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)x200.0, glue set 174.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
+%
+% Zero width
+%
+> \boxXX=
+\vbox(50.0+0.0)x200.0
+.\glue 0.0
+.\glue 0.0 plus -1.0
+.\glue(\parskip) 0.0 plus 1.0
+.\glue(\lineskip) 0.0
+.\hbox(50.0+0.0)x200.0
+..\rule(50.0+0.0)x200.0
+..\penalty 10000
+..\glue(\parfillskip) 0.0 plus 1.0fil
+..\glue(\rightskip) 0.0
+.\glue 0.0 plus 1.0fil
+.\glue 0.0
diff --git a/Master/texmf-dist/doc/latex/cals/test/cell/test_10_create.tex b/Master/texmf-dist/doc/latex/cals/test/cell/test_10_create.tex
new file mode 100644
index 00000000000..6692b6e6141
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cals/test/cell/test_10_create.tex
@@ -0,0 +1,22 @@
+\cals@paddingL=12pt \relax
+\cals@paddingR=13pt \relax
+\setlength{\cals@paddingT}{14pt}
+\setlength{\cals@paddingB}{15pt}
+
+\cals@paddingD=1pt \relax
+\setlength{\baselineskip}{10pt}
+
+\def\cals@celll@end{}
+
+\setbox0=\cals@cell{200pt}{0pt}{\noindent \vrule height3pt depth2pt width1pt}
+\showbox0
+
+\setbox0=\cals@cell{200pt}{100pt}{\noindent \vrule height3pt depth2pt width1pt}
+\showbox0
+
+%
+% Zero width makes exact size
+%
+\cals@setpadding{}\cals@setcellprevdepth{}
+\setbox0=\cals@cell{200pt}{0pt}{\noindent \vrule height50pt depth0pt width200pt}
+\showbox0
diff --git a/Master/texmf-dist/doc/latex/cals/test/cell/test_20_colwidth.chk b/Master/texmf-dist/doc/latex/cals/test/cell/test_20_colwidth.chk
new file mode 100644
index 00000000000..9bc5c27f1c5
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cals/test/cell/test_20_colwidth.chk
@@ -0,0 +1,10 @@
+> \cals@colwidths=macro:
+->{100pt}{200pt}.
+> \llt@car=macro:
+->100pt.
+> \cals@colwidths=macro:
+->{200pt}{100pt}.
+> \llt@car=macro:
+->200pt.
+> \cals@colwidths=macro:
+->{100pt}{200pt}.
diff --git a/Master/texmf-dist/doc/latex/cals/test/cell/test_20_colwidth.tex b/Master/texmf-dist/doc/latex/cals/test/cell/test_20_colwidth.tex
new file mode 100644
index 00000000000..ec8a1f3f9a8
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cals/test/cell/test_20_colwidth.tex
@@ -0,0 +1,9 @@
+\def\x{200pt}
+\colwidths{{100pt}{\x}}
+\show\cals@colwidths
+\llt@rot\cals@colwidths
+\show\llt@car
+\show\cals@colwidths
+\llt@rot\cals@colwidths
+\show\llt@car
+\show\cals@colwidths
diff --git a/Master/texmf-dist/doc/latex/cals/test/cell/test_30_decor.chk b/Master/texmf-dist/doc/latex/cals/test/cell/test_30_decor.chk
new file mode 100644
index 00000000000..6b6be1d2cfc
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cals/test/cell/test_30_decor.chk
@@ -0,0 +1,38 @@
+> \boxXX=
+\hbox(0.0+0.0)x100.0
+.\pdfcolorstack 0 push {1 0 0 rg 1 0 0 RG}
+.\rule(*+0.0)x100.0
+.\pdfcolorstack 0 pop
+.\glue -100.0
+.\glue 100.0
+> \cals@lastWidth=\relax.
+%
+%
+> \boxXX=
+\hbox(0.0+0.0)x300.0
+.\pdfcolorstack 0 push {1 0 0 rg 1 0 0 RG}
+.\rule(*+0.0)x100.0
+.\pdfcolorstack 0 pop
+.\glue -100.0
+.\glue 100.0
+.\pdfcolorstack 0 push {0 1 0 rg 0 1 0 RG}
+.\rule(*+0.0)x200.0
+.\pdfcolorstack 0 pop
+.\glue -200.0
+.\glue -1.0
+.\rule(*+0.0)x2.0
+.\glue -1.0
+.\glue 200.0
+> \cals@current@rs@above=macro:
+->{{100pt}{0pt}{2pt}\relax }.
+> \cals@current@rs@below=macro:
+->{{100pt}{0pt}{2pt}\relax }.
+> \cals@lastWidth=macro:
+->4pt.
+%
+%
+%
+> \cals@current@rs@above=macro:
+->{{100pt}{0pt}{2pt}\relax }{{200pt}{2pt}{4pt}{3pt}}.
+> \cals@current@rs@below=macro:
+->{{100pt}{0pt}{2pt}\relax }{{200pt}{2pt}{4pt}{5pt}}.
diff --git a/Master/texmf-dist/doc/latex/cals/test/cell/test_30_decor.tex b/Master/texmf-dist/doc/latex/cals/test/cell/test_30_decor.tex
new file mode 100644
index 00000000000..ee65891a60b
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cals/test/cell/test_30_decor.tex
@@ -0,0 +1,29 @@
+\def\cals@framecs@width{0pt}
+\def\cals@cs@width{1pt}
+\def\cals@bgcolor{red}
+
+\let\cals@borderL=\relax
+\let\cals@borderR=\relax
+\let\cals@borderT=\relax
+\let\cals@borderB=\relax
+
+\colwidths{{100pt}{200pt}}
+\cals@decor@begin
+
+\cell{aaaa}
+\showbox\cals@current@cs
+\show\cals@lastWidth
+\def\cals@borderL{2pt}
+\def\cals@borderT{3pt}
+\def\cals@borderR{4pt}
+\def\cals@borderB{5pt}
+\def\cals@bgcolor{green}
+\cell{b}
+\showbox\cals@current@cs
+\show\cals@current@rs@above
+\show\cals@current@rs@below
+\show\cals@lastWidth
+
+\cals@decor@end\cals@borderR
+\show\cals@current@rs@above
+\show\cals@current@rs@below
diff --git a/Master/texmf-dist/doc/latex/cals/test/cell/test_40_width.chk b/Master/texmf-dist/doc/latex/cals/test/cell/test_40_width.chk
new file mode 100644
index 00000000000..b3af972f4a5
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cals/test/cell/test_40_width.chk
@@ -0,0 +1,26 @@
+> \boxXX=
+\hbox(20.0+0.0)x300.0
+.\vbox(0.0+0.0)x100.0
+..\glue 0.0
+..\glue 0.0 plus -1.0
+..\glue 0.0 plus 1.0fil
+..\glue 0.0
+.\vbox(20.0+0.0)x200.0
+..\glue 0.0
+..\glue 0.0 plus -1.0
+..\rule(20.0+0.0)x300.0
+..\glue 0.0 plus 1.0fil
+..\glue 0.0
+> \boxXX=
+\hbox(20.0+0.0)x300.0
+.\vbox(20.0+0.0)x100.0, glue set 20.0fil
+..\glue 0.0
+..\glue 0.0 plus -1.0
+..\glue 0.0 plus 1.0fil
+..\glue 0.0
+.\vbox(20.0+0.0)x200.0
+..\glue 0.0
+..\glue 0.0 plus -1.0
+..\rule(20.0+0.0)x300.0
+..\glue 0.0 plus 1.0fil
+..\glue 0.0
diff --git a/Master/texmf-dist/doc/latex/cals/test/cell/test_40_width.tex b/Master/texmf-dist/doc/latex/cals/test/cell/test_40_width.tex
new file mode 100644
index 00000000000..0f3816cfd9c
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cals/test/cell/test_40_width.tex
@@ -0,0 +1,15 @@
+%
+% Force width if force major
+%
+\begin{calstable}
+\cals@setpadding{}
+\cals@setcellprevdepth{}
+\colwidths{{100pt}{200pt}}
+\brow
+\cell{}
+\cell{\hrule width300pt height20pt depth0pt}
+\showbox\cals@current@row
+\cals@reheight@cells\cals@current@row
+\showbox\cals@current@row
+\erow
+\end{calstable}
diff --git a/Master/texmf-dist/doc/latex/cals/test/cell/test_50_hooks.chk b/Master/texmf-dist/doc/latex/cals/test/cell/test_50_hooks.chk
new file mode 100644
index 00000000000..7ab3e2dbc36
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cals/test/cell/test_50_hooks.chk
@@ -0,0 +1,4 @@
+> the letter A.
+> the letter B.
+> the letter C.
+> the letter D.
diff --git a/Master/texmf-dist/doc/latex/cals/test/cell/test_50_hooks.tex b/Master/texmf-dist/doc/latex/cals/test/cell/test_50_hooks.tex
new file mode 100644
index 00000000000..21ef65f571a
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cals/test/cell/test_50_hooks.tex
@@ -0,0 +1,12 @@
+\begin{calstable}
+\colwidths{{100pt}}
+\brow
+\def\cals@AtBeginCell{\show A}
+\def\cals@AtEndCell{\show B}
+\cell{a}
+\def\cals@AtBeginCell{\show C}
+\def\cals@AtEndCell{\show D}
+\nullcell{ltb}
+\nullcell{rtb}\spancontent{b}
+\erow
+\end{calstable}