diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/cals/test/rowsep |
Initial commit
Diffstat (limited to 'macros/latex/contrib/cals/test/rowsep')
12 files changed, 435 insertions, 0 deletions
diff --git a/macros/latex/contrib/cals/test/rowsep/test_10_waitrule.chk b/macros/latex/contrib/cals/test/rowsep/test_10_waitrule.chk new file mode 100644 index 0000000000..30e283b630 --- /dev/null +++ b/macros/latex/contrib/cals/test/rowsep/test_10_waitrule.chk @@ -0,0 +1,47 @@ +% +% Empty +% +> \boxXX= +\hbox(0.0+0.0)x0.0 +% +% One +% +> \boxXX= +\hbox(0.5+0.5)x100.0 +.\glue -1.0 +.\rule(0.5+0.5)x103.0 +.\glue -2.0 +% +% Several, same width +% +> \boxXX= +\hbox(0.5+0.5)x300.0 +.\glue -1.0 +.\rule(0.5+0.5)x303.0 +.\glue -2.0 +% +% Mixed +% +> \boxXX= +\hbox(2.5+2.5)x300.0 +.\glue -1.0 +.\rule(0.5+0.5)x103.0 +.\glue -2.0 +.\glue -1.0 +.\rule(1.5+1.5)x103.0 +.\glue -2.0 +.\glue -1.0 +.\rule(2.5+2.5)x103.0 +.\glue -2.0 +% +% No rule at all +% +> \boxXX= +\hbox(1.0+1.0)x400.0 +.\glue -1.0 +.\rule(1.0+1.0)x103.0 +.\glue -2.0 +.\glue 200.0 +.\glue -1.0 +.\rule(1.0+1.0)x103.0 +.\glue -2.0 diff --git a/macros/latex/contrib/cals/test/rowsep/test_10_waitrule.tex b/macros/latex/contrib/cals/test/rowsep/test_10_waitrule.tex new file mode 100644 index 0000000000..537b3df741 --- /dev/null +++ b/macros/latex/contrib/cals/test/rowsep/test_10_waitrule.tex @@ -0,0 +1,68 @@ +% +% Testing "waiting" rule +% + +% +% Empty +% +\setbox0=\hbox{% +\cals@rs@sofar@reset +\cals@rs@sofar@end +} +\showbox0 + +% +% One element +% +\def\ll{100pt} +\def\dl{2pt} +\def\dr{4pt} +\def\w{1pt} +\setbox0=\hbox{% +\cals@rs@sofar@reset +\cals@rs@sofar@next\ll\dl\dr\w +\cals@rs@sofar@end +} +\showbox0 + +% +% Elements of the same width +% +\setbox0=\hbox{% +\cals@rs@sofar@reset +\cals@rs@sofar@next\ll\dl\dr\w +\cals@rs@sofar@next\ll\dl\dr\w +\cals@rs@sofar@next\ll\dl\dr\w +\cals@rs@sofar@end +} +\showbox0 + +% +% Elements of different widths +% +\setbox0=\hbox{% +\cals@rs@sofar@reset +\cals@rs@sofar@next\ll\dl\dr\w +\def\w{3pt}% +\cals@rs@sofar@next\ll\dl\dr\w +\def\w{5pt}% +\cals@rs@sofar@next\ll\dl\dr\w +\cals@rs@sofar@end +} +\showbox0 + +% +% 0pt width=no rule at all +% +\setbox0=\hbox{% +\def\w{2pt}% +\cals@rs@sofar@reset +\cals@rs@sofar@next\ll\dl\dr\w +\def\w{0pt}% +\cals@rs@sofar@next\ll\dl\dr\w +\cals@rs@sofar@next\ll\dl\dr\w +\def\w{2pt}% +\cals@rs@sofar@next\ll\dl\dr\w +\cals@rs@sofar@end +} +\showbox0 diff --git a/macros/latex/contrib/cals/test/rowsep/test_15_waitover.chk b/macros/latex/contrib/cals/test/rowsep/test_15_waitover.chk new file mode 100644 index 0000000000..646dd34aaa --- /dev/null +++ b/macros/latex/contrib/cals/test/rowsep/test_15_waitover.chk @@ -0,0 +1,36 @@ +% +% Same width +% +> \boxXX= +\hbox(1.0+1.0)x100.0 +.\glue -1.0 +.\rule(1.0+1.0)x103.0 +.\glue -2.0 +% +% Different borders +% +> \boxXX= +\hbox(1.0+1.0)x100.0 +.\glue -3.0 +.\rule(1.0+1.0)x107.0 +.\glue -4.0 +% +% Different widths +% +> \boxXX= +\hbox(2.0+2.0)x100.0 +.\glue -1.0 +.\rule(1.0+1.0)x103.0 +.\glue -2.0 +.\glue -100.0 +.\glue -1.0 +.\rule(2.0+2.0)x103.0 +.\glue -2.0 +% +% Different widths, second is 0pt +% +> \boxXX= +\hbox(1.0+1.0)x100.0 +.\glue -1.0 +.\rule(1.0+1.0)x103.0 +.\glue -2.0 diff --git a/macros/latex/contrib/cals/test/rowsep/test_15_waitover.tex b/macros/latex/contrib/cals/test/rowsep/test_15_waitover.tex new file mode 100644 index 0000000000..b04a81587e --- /dev/null +++ b/macros/latex/contrib/cals/test/rowsep/test_15_waitover.tex @@ -0,0 +1,51 @@ +\def\ll{100pt} +\def\dl{2pt} +\def\dr{4pt} +% +% Same width and borders +% +\def\w{2pt} +\setbox0=\hbox{% +\cals@rs@sofar@reset +\cals@rs@sofar@next\ll\dl\dr\w +\cals@rs@sofar@over\ll\dl\dr\w +\cals@rs@sofar@end +} +\showbox0 + +% +% Same width, bigger borders +% +\setbox0=\hbox{% +\cals@rs@sofar@reset +\cals@rs@sofar@next\ll\dl\dr\w +\def\dlII{6pt}% +\def\drII{8pt}% +\cals@rs@sofar@over\ll\dlII\drII\w +\cals@rs@sofar@end +} +\showbox0 + +% +% Different widths +% +\setbox0=\hbox{% +\cals@rs@sofar@reset +\cals@rs@sofar@next\ll\dl\dr\w +\def\wII{4pt}% +\cals@rs@sofar@over\ll\dl\dr\wII +\cals@rs@sofar@end +} +\showbox0 + +% +% Different widths, second is 0pt +% +\setbox0=\hbox{% +\cals@rs@sofar@reset +\cals@rs@sofar@next\ll\dl\dr\w +\def\wII{0pt}% +\cals@rs@sofar@over\ll\dl\dr\wII +\cals@rs@sofar@end +} +\showbox0 diff --git a/macros/latex/contrib/cals/test/rowsep/test_20_pack.chk b/macros/latex/contrib/cals/test/rowsep/test_20_pack.chk new file mode 100644 index 0000000000..4af37cfac1 --- /dev/null +++ b/macros/latex/contrib/cals/test/rowsep/test_20_pack.chk @@ -0,0 +1,38 @@ +% +% 0pt +% +> \tmp=macro: +->{100pt}{2pt}{4pt}{0pt}. +> \ll=macro: +->100pt. +> \dl=macro: +->2pt. +> \dr=macro: +->4pt. +> \w=macro: +->0pt. +% +% \relax +% +> \tmp=macro: +->{200pt}{2pt}{4pt}\relax . +> \ll=macro: +->200pt. +> \dl=macro: +->2pt. +> \dr=macro: +->4pt. +> \w=\relax. +% +% User-specified +% +> \tmp=macro: +->{300pt}{0pt}{0pt}{3pt}. +> \ll=macro: +->300pt. +> \dl=macro: +->0pt. +> \dr=macro: +->0pt. +> \w=macro: +->3pt. diff --git a/macros/latex/contrib/cals/test/rowsep/test_20_pack.tex b/macros/latex/contrib/cals/test/rowsep/test_20_pack.tex new file mode 100644 index 0000000000..9f881ed494 --- /dev/null +++ b/macros/latex/contrib/cals/test/rowsep/test_20_pack.tex @@ -0,0 +1,32 @@ +% +% 0pt for thick +% +\cals@rs@pack\tmp{100pt}{2pt}{4pt}{0pt} +\show\tmp +\cals@rs@unpack\tmp\ll\dl\dr\w +\show\ll +\show\dl +\show\dr +\show\w + +% +% Use default think +% +\cals@rs@pack\tmp{200pt}{2pt}{4pt}\relax +\show\tmp +\cals@rs@unpack\tmp\ll\dl\dr\w +\show\ll +\show\dl +\show\dr +\show\w + +% +% User-specified thick +% +\cals@rs@pack\tmp{300pt}{0pt}{0pt}{3pt} +\show\tmp +\cals@rs@unpack\tmp\ll\dl\dr\w +\show\ll +\show\dl +\show\dr +\show\w diff --git a/macros/latex/contrib/cals/test/rowsep/test_30_jointwo.chk b/macros/latex/contrib/cals/test/rowsep/test_30_jointwo.chk new file mode 100644 index 0000000000..644d9520d5 --- /dev/null +++ b/macros/latex/contrib/cals/test/rowsep/test_30_jointwo.chk @@ -0,0 +1,29 @@ +% +% Empty +% +> \boxXX= +\hbox(0.0+0.0)x0.0 +% +% One element +% +> \boxXX= +\hbox(3.0+3.0)x100.0 +.\glue -1.5 +.\rule(3.0+3.0)x104.0 +.\glue -2.5 +% +% Several elements +% +> \boxXX= +\hbox(4.0+4.0)x303.0 +.\glue -1.0 +.\rule(3.0+3.0)x103.0 +.\glue -2.0 +.\glue -100.0 +.\glue -2.0 +.\rule(4.0+4.0)x104.0 +.\glue -2.0 +.\glue -1.0 +.\rule(0.5+0.5)x104.0 +.\glue -2.0 +.\glue 102.0 diff --git a/macros/latex/contrib/cals/test/rowsep/test_30_jointwo.tex b/macros/latex/contrib/cals/test/rowsep/test_30_jointwo.tex new file mode 100644 index 0000000000..e6f1c11734 --- /dev/null +++ b/macros/latex/contrib/cals/test/rowsep/test_30_jointwo.tex @@ -0,0 +1,34 @@ +\def\defaultwidth{1pt} + +% +% Empty +% +\def\rsI{} +\def\rsII{} +\def\mkbox{\setbox0=\hbox{\cals@rs@sofar@reset \cals@rs@joinTwo\defaultwidth\rsI\rsII \cals@rs@sofar@end}} +\mkbox +\showbox0 + +% +% One element +% +\cals@rs@pack\rsI{100pt}{2pt}{4pt}{6pt} +\cals@rs@pack\rsII{100pt}{3pt}{5pt}{6pt} +\edef\rsI{{\rsI}} +\edef\rsII{{\rsII}} +\mkbox +\showbox0 + +% +% Several elements, with no-line and default +% +\cals@rs@pack\frI{100pt}{2pt}{4pt}{6pt} +\cals@rs@pack\frII{101pt}{2pt}{4pt}\relax +\cals@rs@pack\frIII{102pt}{2pt}{4pt}{0pt} +\edef\rsI{{\frI}{\frII}{\frIII}} +\cals@rs@pack\frI{100pt}{4pt}{4pt}{8pt} +\cals@rs@pack\frII{101pt}{2pt}{4pt}\relax +\cals@rs@pack\frIII{102pt}{3pt}{5pt}{0pt} +\edef\rsII{{\frI}{\frII}{\frIII}} +\mkbox +\showbox0 diff --git a/macros/latex/contrib/cals/test/rowsep/test_35_joinone.chk b/macros/latex/contrib/cals/test/rowsep/test_35_joinone.chk new file mode 100644 index 0000000000..6e24b4c368 --- /dev/null +++ b/macros/latex/contrib/cals/test/rowsep/test_35_joinone.chk @@ -0,0 +1,16 @@ +> \boxXX= +\hbox(0.0+0.0)x0.0 +> \boxXX= +\hbox(3.0+3.0)x100.0 +.\glue -1.0 +.\rule(3.0+3.0)x103.0 +.\glue -2.0 +> \boxXX= +\hbox(3.0+3.0)x403.0 +.\glue -1.0 +.\rule(3.0+3.0)x203.0 +.\glue -2.0 +.\glue -1.0 +.\rule(0.5+0.5)x104.0 +.\glue -2.0 +.\glue 102.0 diff --git a/macros/latex/contrib/cals/test/rowsep/test_35_joinone.tex b/macros/latex/contrib/cals/test/rowsep/test_35_joinone.tex new file mode 100644 index 0000000000..979a3b9950 --- /dev/null +++ b/macros/latex/contrib/cals/test/rowsep/test_35_joinone.tex @@ -0,0 +1,27 @@ +\def\defaultwidth{1pt} + +% +% Empty +% +\def\rs{} +\def\mkbox{\setbox0=\hbox{\cals@rs@sofar@reset \cals@rs@joinOne\defaultwidth\rs \cals@rs@sofar@end}} +\mkbox +\showbox0 + +% +% One element +% +\cals@rs@pack\rs{100pt}{2pt}{4pt}{6pt} +\edef\rs{{\rs}} +\mkbox +\showbox0 + +% +% Several elements, with no-line and default +% +\cals@rs@pack\frI{100pt}{2pt}{4pt}{6pt} +\cals@rs@pack\frII{101pt}{2pt}{4pt}\relax +\cals@rs@pack\frIII{102pt}{2pt}{4pt}{0pt} +\edef\rs{{\frI}{\frI}{\frII}{\frIII}} +\mkbox +\showbox0 diff --git a/macros/latex/contrib/cals/test/rowsep/test_40_construct.chk b/macros/latex/contrib/cals/test/rowsep/test_40_construct.chk new file mode 100644 index 0000000000..0accaf6653 --- /dev/null +++ b/macros/latex/contrib/cals/test/rowsep/test_40_construct.chk @@ -0,0 +1,21 @@ +% +% Empty +% +> \cals@current@rs@above=macro: +->. +> \cals@current@rs@below=macro: +->. +% +% One element +% +> \cals@current@rs@above=macro: +->{{100pt}{3pt}{5pt}\relax }. +> \cals@current@rs@below=macro: +->{{100pt}{3pt}{5pt}{4pt}}. +% +% Two elements +% +> \cals@current@rs@above=macro: +->{{100pt}{0pt}{2pt}\relax }{{200pt}{2pt}{8pt}{6pt}}. +> \cals@current@rs@below=macro: +->{{100pt}{0pt}{2pt}{4pt}}{{200pt}{2pt}{8pt}\relax }. diff --git a/macros/latex/contrib/cals/test/rowsep/test_40_construct.tex b/macros/latex/contrib/cals/test/rowsep/test_40_construct.tex new file mode 100644 index 0000000000..24d895efdb --- /dev/null +++ b/macros/latex/contrib/cals/test/rowsep/test_40_construct.tex @@ -0,0 +1,36 @@ +\def\wNone{0pt} +\def\wII{2pt} +\def\wIII{3pt} +\def\wIV{4pt} +\def\wV{5pt} +\def\wVI{6pt} +\def\wVIII{8pt} +\def\wC{100pt} +\def\wCC{200pt} + +% +% Empty +% +\cals@rs@spec@begin +\cals@rs@spec@end\wII +\show\cals@current@rs@above +\show\cals@current@rs@below + +% +% One element +% +\cals@rs@spec@begin +\cals@rs@spec@next\wC\wIII\relax\wIV % length, borderT, borderB +\cals@rs@spec@end\wV +\show\cals@current@rs@above +\show\cals@current@rs@below + +% +% Two elements +% +\cals@rs@spec@begin +\cals@rs@spec@next\wC\wNone\relax\wIV +\cals@rs@spec@next\wCC\wII\wVI\relax +\cals@rs@spec@end\wVIII +\show\cals@current@rs@above +\show\cals@current@rs@below |