diff options
author | Norbert Preining <norbert@preining.info> | 2021-03-19 03:00:56 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-03-19 03:00:56 +0000 |
commit | 6ad1cf68ae6add67e56faf5ec4390fead04e31b4 (patch) | |
tree | ac6239e221ac7bcc6d69b6cbc1d7736f60d19a00 /systems/doc | |
parent | ca17f652236af2ce3a16cb0125fb6e190d59cc17 (diff) |
CTAN sync 202103190300
Diffstat (limited to 'systems/doc')
-rw-r--r-- | systems/doc/luatex/luatex-tex.tex | 22 | ||||
-rw-r--r-- | systems/doc/luatex/luatex.pdf | bin | 1609366 -> 1763334 bytes |
2 files changed, 20 insertions, 2 deletions
diff --git a/systems/doc/luatex/luatex-tex.tex b/systems/doc/luatex/luatex-tex.tex index c9ca45158c..67e22d7355 100644 --- a/systems/doc/luatex/luatex-tex.tex +++ b/systems/doc/luatex/luatex-tex.tex @@ -1,4 +1,4 @@ -% language=uk +% engine=luatex language=uk % lua.newtable @@ -1971,14 +1971,32 @@ values from \type {texmf.cnf} are used. You can kick in your own nesting level visualizer, for instance: -\stoptyping +\starttyping callback.register("input_level_string",function(n) + if tex.tracingmacros > 0 and tex.count.tracingstacklevels > 0 then if tex.tracingmacros > 1 then return "! " .. string.rep(">",n) .. " " end end) \stoptyping +Or, in sync with other engines (not checked): + +\newcount\tracingstacklevels + +\starttyping +\directlua { + callback.register("input_level_string", function(n) + if tex.tracingmacros > 0 then + local l = tex.count.tracingstacklevels + if l > 0 then + return string.rep("~",l) .. string.rep(".",n-l) + end + end + end) +} +\stoptyping + \stopsection \startsection[title={The \type {texio} library}][library=texio] diff --git a/systems/doc/luatex/luatex.pdf b/systems/doc/luatex/luatex.pdf Binary files differindex 8504e3bf56..b044846b7c 100644 --- a/systems/doc/luatex/luatex.pdf +++ b/systems/doc/luatex/luatex.pdf |