summaryrefslogtreecommitdiff
path: root/macros/luatex/generic/lua-widow-control/lwc-sample.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-05-21 03:00:51 +0000
committerNorbert Preining <norbert@preining.info>2022-05-21 03:00:51 +0000
commitfbe3cb5feb55dc6417d9bb95e3c7954a1b0b9ee8 (patch)
tree8b0d1308f7fb87bb2e578c8d9c2b1d5516063558 /macros/luatex/generic/lua-widow-control/lwc-sample.tex
parent33fe673e1a4a678f76e23a91da0f449998af9c47 (diff)
CTAN sync 202205210300
Diffstat (limited to 'macros/luatex/generic/lua-widow-control/lwc-sample.tex')
-rw-r--r--macros/luatex/generic/lua-widow-control/lwc-sample.tex65
1 files changed, 61 insertions, 4 deletions
diff --git a/macros/luatex/generic/lua-widow-control/lwc-sample.tex b/macros/luatex/generic/lua-widow-control/lwc-sample.tex
index 8df05999a5..6951f7a5bb 100644
--- a/macros/luatex/generic/lua-widow-control/lwc-sample.tex
+++ b/macros/luatex/generic/lua-widow-control/lwc-sample.tex
@@ -48,7 +48,7 @@
\startbuffer[shorten]
\parskip=0pt
- \input lwc-documentation-demo-text.tmp
+ \input lwc-manual-demo-text.tmp
\stopbuffer
\startbuffer[shorten-code]
@@ -60,7 +60,7 @@
\startbuffer[stretch]
\parskip=0pt plus 1fill
- \input lwc-documentation-demo-text.tmp
+ \input lwc-manual-demo-text.tmp
\stopbuffer
\startbuffer[stretch-code]
@@ -81,7 +81,7 @@
\setups[*default]
- \input lwc-documentation-demo-text.tmp
+ \input lwc-manual-demo-text.tmp
\stopbuffer
\startbuffer[ignore-code]
@@ -93,7 +93,7 @@
\startbuffer[lwc]
\usemodule[lua-widow-control]
- \input lwc-documentation-demo-text.tmp
+ \input lwc-manual-demo-text.tmp
\stopbuffer
\startbuffer[lwc-code]
@@ -119,3 +119,60 @@
\NC\fakeend{1}{2em}\NC\NC\fakeend{5}{1.5em}\NC\NR
\stopTABLE
\stopbuffer
+
+\startbuffer[nobreak]
+ % This is also really hacky and terrible
+ \parfillskip=0pt
+ \define\lineone{%
+ \hbox to 0.3\textwidth{\blackrule[height=1.5ex, width=1em]\hfill%
+ \blackrule[height=1.5ex, width=3em]\hfill%
+ \blackrule[height=1.5ex, width=1em]\hfill%
+ \blackrule[height=1.5ex, width=3em]\hfill%
+ \blackrule[height=1.5ex, width=1em]}%
+ }
+
+ \define\linetwo{%
+ \hbox to 0.3\textwidth{\blackrule[height=1.5ex, width=2em]\hfill%
+ \blackrule[height=1.5ex, width=1em]\hfill%
+ \blackrule[height=1.5ex, width=2.5em]\hfill%
+ \blackrule[height=1.5ex, width=1em]\hfill%
+ \blackrule[height=1.5ex, width=2.5em]}%
+ }
+
+ \define\linethree{%
+ \hbox to 0.3\textwidth{\blackrule[height=1.5ex, width=1em]\hfill%
+ \blackrule[height=1.5ex, width=3em]\hfill%
+ \blackrule[height=1.5ex, width=1em]\hfill%
+ \blackrule[height=1.5ex, width=3em]\hfill%
+ \hskip1em\relax}%
+ }
+
+ \define\heading{\bold{Heading}}
+
+ \setupTABLE[
+ width=broad,
+ topframe=off,
+ bottomframe=off,
+ leftframe=on,
+ rightframe=on,
+ height=1.2\baselineskip
+ ]
+ \setupTABLE[row][1][
+ align=middle,
+ style=\ttbf,
+ bottomframe=on,
+ leftframe=off,
+ rightframe=off
+ ]
+ \setupTABLE[row][3][bottomframe=on]
+ \setupTABLE[row][5][bottomframe=on]
+ \setupTABLE[column][2][bottomframe=off, width=1em]
+ \setupTABLE[column][4][bottomframe=off, width=1em]
+ \startTABLE
+ \NC keep \NC\NC split \NC\NC warn \NC\NR
+ \NC \NC\NC \NC\NC \heading \NC\NR
+ \NC \NC\NC \heading \NC\NC \lineone \NC\NR
+ \NC \heading \NC\NC \lineone \NC\NC \linetwo \NC\NR
+ \NC \lineone \NC\NC \linetwo \NC\NC \linethree \NC\NR
+ \stopTABLE
+\stopbuffer