-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0754e6f
commit 96523a2
Showing
3 changed files
with
198 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
% lua-widow-control | ||
% https://github.com/gucci-on-fleek/lua-widow-control | ||
% SPDX-License-Identifier: MPL-2.0+ | ||
% SPDX-FileCopyrightText: 2024 Max Chernoff | ||
|
||
% See https://tex.stackexchange.com/q/721804 | ||
|
||
\documentclass{book} | ||
\raggedbottom | ||
\widowpenalty=1 | ||
\clubpenalty=1 | ||
|
||
\usepackage[draft]{lua-widow-control} | ||
|
||
\def\test{ | ||
\chapter{Test} | ||
|
||
\newcount\n \n=0 | ||
\loop\ifnum\n<30 | ||
\advance\n by 1\relax | ||
\the\n~One line one line one line one line one line one line. | ||
\par | ||
\repeat | ||
|
||
1~Three lines three lines three lines three lines three lines three lines | ||
three 2~lines. Three lines three lines three lines three lines three lines | ||
three lines three 3~lines. Three lines three lines three lines three lines | ||
three lines three lines. | ||
|
||
\clearpage | ||
} | ||
|
||
\begin{document} | ||
\lwcsetup{disable} | ||
\test | ||
|
||
\lwcsetup{enable} | ||
\test | ||
\end{document} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.