summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/lualatex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-06-18 20:06:28 +0000
committerKarl Berry <karl@freefriends.org>2022-06-18 20:06:28 +0000
commit6aef67d9f5fa3aa0eff4adc1196a7cf4e36c81a9 (patch)
treef96c841c384afd9888443815fff064c92cedea40 /Master/texmf-dist/tex/lualatex
parentebf61fc815a3b70fb28f94ecffbcc7243dcf833c (diff)
lua-widow-control (18jun22)
git-svn-id: svn://tug.org/texlive/trunk@63642 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/lualatex')
-rw-r--r--Master/texmf-dist/tex/lualatex/lua-widow-control/lua-widow-control-2022-02-22.sty4
-rw-r--r--Master/texmf-dist/tex/lualatex/lua-widow-control/lua-widow-control.sty24
2 files changed, 20 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/lualatex/lua-widow-control/lua-widow-control-2022-02-22.sty b/Master/texmf-dist/tex/lualatex/lua-widow-control/lua-widow-control-2022-02-22.sty
index b7b2ab44c04..74645635600 100644
--- a/Master/texmf-dist/tex/lualatex/lua-widow-control/lua-widow-control-2022-02-22.sty
+++ b/Master/texmf-dist/tex/lualatex/lua-widow-control/lua-widow-control-2022-02-22.sty
@@ -12,8 +12,8 @@
% report a real version number here for debugging.
\PackageInfo{lua-widow-control}{%
Real version:
- 2022/05/26 %%slashdate
- v2.1.2 %%version
+ 2022/06/17 %%slashdate
+ v2.2.0 %%version
}
\PackageWarning{lua-widow-control}{%
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 89f417a4576..7d1be850b91 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.1.2}{2022-05-26} %%version %%dashdate
+\DeclareCurrentRelease{v2.2.0}{2022-06-17} %%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/05/26} %%slashdate
- {v2.1.2} %%version
+ {2022/06/17} %%slashdate
+ {v2.2.0} %%version
{Use Lua to remove widows and orphans}
% Unconditional Package Loads
@@ -116,7 +116,11 @@
}
% Load the Lua code
-\lua_now:n { require "lua-widow-control" }
+\cs_if_exist:NTF \lua_load_module:n {
+ \lua_load_module:n { lua-widow-control }
+} {
+ \lua_now:n { require "lua-widow-control" }
+}
% Here, we enable font expansion/contraction. It isn't strictly necessary for
% \lwc/'s functionality; however, it is required for the
@@ -220,8 +224,16 @@
disable .value_forbidden:n = true,
debug .choice:,
- debug / true .code:n = \__lwc_debug:n { true },
- debug / false .code:n = \__lwc_debug:n { false },
+ debug / true .code:n = \__lwc_debug:n { true },
+ debug / false .code:n = \__lwc_debug:n { false },
+ debug .default:n = true,
+ debug .value_required:n = false,
+
+ draft .choice:,
+ draft / true .code:n = \__lwc_draft:n { true },
+ draft / false .code:n = \__lwc_draft:n { false },
+ draft .default:n = true,
+ draft .value_required:n = false,
nobreak .code:n = \__lwc_nobreak:n { #1 },
nobreak .value_required:n = true,