summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/luatex/base
diff options
context:
space:
mode:
authorLuigi Scarso <luigi.scarso@gmail.com>2021-03-18 19:34:59 +0000
committerLuigi Scarso <luigi.scarso@gmail.com>2021-03-18 19:34:59 +0000
commit684c32b10d7ba305182d2c1bc6e56b5ee175f13b (patch)
tree309149f8a1e10cdadb68a1530632fe193fa1ccfb /Master/texmf-dist/doc/luatex/base
parentaab24659348a47a0d65f80fb15a44e2198904b00 (diff)
Updated luatex manual.
git-svn-id: svn://tug.org/texlive/trunk@58499 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/luatex/base')
-rw-r--r--Master/texmf-dist/doc/luatex/base/luatex-tex.tex22
-rw-r--r--Master/texmf-dist/doc/luatex/base/luatex.pdfbin1609366 -> 1763334 bytes
2 files changed, 20 insertions, 2 deletions
diff --git a/Master/texmf-dist/doc/luatex/base/luatex-tex.tex b/Master/texmf-dist/doc/luatex/base/luatex-tex.tex
index c9ca45158c3..67e22d73555 100644
--- a/Master/texmf-dist/doc/luatex/base/luatex-tex.tex
+++ b/Master/texmf-dist/doc/luatex/base/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/Master/texmf-dist/doc/luatex/base/luatex.pdf b/Master/texmf-dist/doc/luatex/base/luatex.pdf
index 8504e3bf56d..b044846b7cf 100644
--- a/Master/texmf-dist/doc/luatex/base/luatex.pdf
+++ b/Master/texmf-dist/doc/luatex/base/luatex.pdf
Binary files differ