diff options
Diffstat (limited to 'Master/texmf-dist/source/luatex/lua-widow-control')
-rw-r--r-- | Master/texmf-dist/source/luatex/lua-widow-control/lwc-documentation.tex | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/Master/texmf-dist/source/luatex/lua-widow-control/lwc-documentation.tex b/Master/texmf-dist/source/luatex/lua-widow-control/lwc-documentation.tex index 7f05a344f05..23b13c02506 100644 --- a/Master/texmf-dist/source/luatex/lua-widow-control/lwc-documentation.tex +++ b/Master/texmf-dist/source/luatex/lua-widow-control/lwc-documentation.tex @@ -5,7 +5,10 @@ % SPDX-License-Identifier: MPL-2.0+ OR CC-BY-SA-4.0+ % SPDX-FileCopyrightText: 2022 Max Chernoff -% Warning: Compiles slowly +\doifnot{\contextmark}{LMTX}{ + \errhelp{LMTX/MkXL is required to compile this file.} + \errmessage{Fatal error, exiting.} +} \environment lwc-documentation @@ -37,7 +40,7 @@ \startdocument[ title=lua-widow-control, author=Max Chernoff, - version=2.0.6, %%version + version=2.1.0, %%version github=https://github.com/gucci-on-fleek/lua-widow-control, ctan=https://www.ctan.org/pkg/lua-widow-control, ] @@ -316,7 +319,7 @@ Note that the \LaTeX{} option does not \emph{append} commands to the disable lis \startTABLE \NC \plainop/ - \NC \inlineTEX{\lwcdisablecmd{$\meta{\backslash macro}$}} + \NC \inlineTEX{\lwcdisablecmd $\meta{\backslash macro}$} \NC\NR \NC \LaTeX{} \NC \inlineTEX{\lwcsetup{disablecmds = {$\meta{macronameone}$, $\meta{macronametwo}$}}} @@ -363,7 +366,7 @@ When \lwc/ encounters an orphan, it removes it by removing the orphaned line to \startTABLE \NC \plainop/ - \NC\inlineTEX{\directlua{lwc.nobreak_behaviour = "$\meta{value}$"}} + \NC\inlineTEX{\lwcnobreak{$\meta{value}$}} \NC\NR \NC \LaTeX{} \NC\inlineTEX{\lwcsetup{nobreak = $\meta{value}$}} @@ -409,8 +412,8 @@ Very advanced users may also set a custom cost function by redefining the \inlin \startTABLE \NC \plainop/ - \NC\inlineTEX{\directlua{lwc.debug = true}} - \NC\NR\NC\NC\inlineTEX{\directlua{lwc.debug = false}} + \NC\inlineTEX{\lwcdebug 1} + \NC\NR\NC\NC\inlineTEX{\lwcdebug 0} \NC\NR \NC \LaTeX{} \NC\inlineTEX{\lwcsetup{debug = true}} |