summaryrefslogtreecommitdiff
path: root/macros/luatex/generic/lua-widow-control/lwc-documentation.mkxl
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-12-16 03:01:13 +0000
committerNorbert Preining <norbert@preining.info>2021-12-16 03:01:13 +0000
commit16b22a983bc0f05cbbb201a6e0f5cbbfc3c8fffb (patch)
tree09f27480427360daa44bee043154b5d9580efa33 /macros/luatex/generic/lua-widow-control/lwc-documentation.mkxl
parent0efaa39c6d0b17b58df9a68ae1319ea20aaabc28 (diff)
CTAN sync 202112160301
Diffstat (limited to 'macros/luatex/generic/lua-widow-control/lwc-documentation.mkxl')
-rw-r--r--macros/luatex/generic/lua-widow-control/lwc-documentation.mkxl12
1 files changed, 9 insertions, 3 deletions
diff --git a/macros/luatex/generic/lua-widow-control/lwc-documentation.mkxl b/macros/luatex/generic/lua-widow-control/lwc-documentation.mkxl
index 05d9d930f9..a4489b2e70 100644
--- a/macros/luatex/generic/lua-widow-control/lwc-documentation.mkxl
+++ b/macros/luatex/generic/lua-widow-control/lwc-documentation.mkxl
@@ -28,6 +28,7 @@ fonts.handlers.otf.addfeature {
onum=yes,
script=latn,
emdash_kern=yes,
+ trep=yes,
]
\setupalign[hz, hanging]
@@ -171,6 +172,7 @@ setbounds currentpicture to boundingbox OverlayBox;
]
% TOC
+\def\secondleveltoc{subsection}
\starttexdefinition protected SectionTOCcommand #1#2#3
\startcurrentlistentrywrapper % Make the whole line a link
\midaligned{ % Have the title and page number "glued" to the middle
@@ -190,7 +192,7 @@ setbounds currentpicture to boundingbox OverlayBox;
toffset=-\lineheight,
]{
\global\firstsubsectiontrue
- \placelist[subsection][criterium=local]
+ \placelist[\secondleveltoc][criterium=local]
}}
\iffirstsubsection
\blank[quarterline] % No subsections here
@@ -289,8 +291,12 @@ interfaces.implement {
\blackrule[depth=-0.25\baselineskip, height=\dimexpr0.25\baselineskip + 0.4pt, width=8em]
\par
- \strippedurl{\documentvariable{ctan}}
- \strippedurl{\documentvariable{github}}
+ \doifdocumentvariable{ctan}{
+ \strippedurl{\documentvariable{ctan}}
+ }
+ \doifdocumentvariable{github}{
+ \strippedurl{\documentvariable{github}}
+ }
\blank[big]
\noindentation