diff options
Diffstat (limited to 'macros/luatex/generic/lua-widow-control/lwc-sample.tex')
-rw-r--r-- | macros/luatex/generic/lua-widow-control/lwc-sample.tex | 65 |
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 |