summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/luatex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-05-14 20:33:11 +0000
committerKarl Berry <karl@freefriends.org>2022-05-14 20:33:11 +0000
commit1b913ce64901669921736117b2ed8aa36c55110e (patch)
tree67cb6e4d19b2f0a4a575555053632c423362937e /Master/texmf-dist/source/luatex
parent102d0c6119afd0d7b28ac3e3fa6a5997e96028c6 (diff)
lua-widow-control (14may22)
git-svn-id: svn://tug.org/texlive/trunk@63302 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/luatex')
-rw-r--r--Master/texmf-dist/source/luatex/lua-widow-control/lwc-documentation.tex15
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}}