summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/lualatex/lua-widow-control/lua-widow-control.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/lualatex/lua-widow-control/lua-widow-control.sty')
-rw-r--r--Master/texmf-dist/tex/lualatex/lua-widow-control/lua-widow-control.sty23
1 files changed, 19 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/lualatex/lua-widow-control/lua-widow-control.sty b/Master/texmf-dist/tex/lualatex/lua-widow-control/lua-widow-control.sty
index fc80a58cfbb..6124a13b4d6 100644
--- a/Master/texmf-dist/tex/lualatex/lua-widow-control/lua-widow-control.sty
+++ b/Master/texmf-dist/tex/lualatex/lua-widow-control/lua-widow-control.sty
@@ -13,7 +13,7 @@
\DeclareRelease{}{0000-00-00}{lua-widow-control-2022-02-22.sty}
\DeclareRelease{v1.1.6}{2022-02-22}{lua-widow-control-2022-02-22.sty}
-\DeclareCurrentRelease{v2.0.1}{2022-03-18} %%version %%dashdate
+\DeclareCurrentRelease{v2.0.2}{2022-03-20} %%version %%dashdate
% If this version of LaTeX doesn't support command hooks, then we load
% the last v1.1.X version of the package.
@@ -23,8 +23,8 @@
\ProvidesExplPackage
{lua-widow-control}
- {2022/03/18} %%slashdate
- {v2.0.1} %%version
+ {2022/03/20} %%slashdate
+ {v2.0.2} %%version
{Use Lua to remove widows and orphans}
% Unconditional Package Loads
@@ -93,7 +93,7 @@
brokenpenalty .int_gset:N = \tex_brokenpenalty:D,
brokenpenalty .value_required:n = true,
- brokenpenalty .initial:x = 1,
+ brokenpenalty .initial:n = 1,
microtype .bool_gset:N = \g__lwc_use_microtype_bool,
microtype .value_required:n = true,
@@ -200,14 +200,29 @@
strict .meta:n = { emergencystretch = 0pt,
max-cost = 5000,
nobreak = warn,
+ widowpenalty = 1,
+ orphanpenalty = 1,
+ brokenpenalty = 1,
},
strict .value_forbidden:n = true,
default .meta:n = { emergencystretch = 3em,
max-cost = \c_max_int,
nobreak = keep,
+ widowpenalty = 1,
+ orphanpenalty = 1,
+ brokenpenalty = 1,
},
default .value_forbidden:n = true,
+
+ balanced .meta:n = { emergencystretch = 1em,
+ max-cost = 10000,
+ nobreak = keep,
+ widowpenalty = 500,
+ orphanpenalty = 500,
+ brokenpenalty = 500,
+ },
+ balanced .value_forbidden:n = true,
}
% Add the user interface for the keys