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.sty30
1 files changed, 17 insertions, 13 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 56462e40d87..fc80a58cfbb 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
@@ -5,7 +5,7 @@
% Formats built after 2015 include \LuaTeX{}Base, so this is the absolute
% minimum version that we will run under.
-\NeedsTeXFormat{LaTeX2e}[2015/01/01]
+\NeedsTeXFormat{LaTeX2e}[2015/01/01]
% For _really_ old formats
\providecommand\DeclareRelease[3]{}
@@ -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.0}{2022-03-07} %%version %%dashdate
+\DeclareCurrentRelease{v2.0.1}{2022-03-18} %%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/07} %%slashdate
- {v2.0.0} %%version
+ {2022/03/18} %%slashdate
+ {v2.0.1} %%version
{Use Lua to remove widows and orphans}
% Unconditional Package Loads
@@ -44,15 +44,15 @@
\msg_new:nnn
{ \c__lwc_name_str }
{ patch-failed }
- {
+ {
Patching~ \c_backslash_str #1~ failed. \\
- Please~ ensure~ that~ \c_backslash_str #1~ exists.
+ Please~ ensure~ that~ \c_backslash_str #1~ exists.
}
\msg_new:nnn
{ \c__lwc_name_str }
{ old-format-patch }
- {
+ {
Patching~ not~ supported~ with~ old~ LaTeX. \\
Please~ use~ a~ LaTeX~ format~ >=~ 2021/06/01.
}
@@ -60,9 +60,9 @@
\msg_new:nnn
{ \c__lwc_name_str }
{ old-command }
- {
+ {
\c_backslash_str #1~ has~ been~ REMOVED! \\
- Please~ use~ \c_backslash_str setuplwc \c_left_brace_str #2
+ Please~ use~ \c_backslash_str setuplwc \c_left_brace_str #2
\c_right_brace_str\ instead.
}
@@ -91,6 +91,10 @@
orphanpenalty .value_required:n = true,
orphanpenalty .initial:n = 1,
+ brokenpenalty .int_gset:N = \tex_brokenpenalty:D,
+ brokenpenalty .value_required:n = true,
+ brokenpenalty .initial:x = 1,
+
microtype .bool_gset:N = \g__lwc_use_microtype_bool,
microtype .value_required:n = true,
microtype .initial:n = true,
@@ -194,16 +198,16 @@
debug / false .code:n = \lua_now:n { lwc.debug = false },
strict .meta:n = { emergencystretch = 0pt,
- max-cost = 2500,
- nobreak = warn,
+ max-cost = 5000,
+ nobreak = warn,
},
strict .value_forbidden:n = true,
default .meta:n = { emergencystretch = 3em,
max-cost = \c_max_int,
- nobreak = keep,
+ nobreak = keep,
},
- default .value_forbidden:n = true,
+ default .value_forbidden:n = true,
}
% Add the user interface for the keys