diff options
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.sty | 24 |
1 files changed, 18 insertions, 6 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 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, |