summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/luatex/luaintro/03-08-2.lualtx3
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/luatex/luaintro/03-08-2.lualtx3')
-rw-r--r--Master/texmf-dist/doc/luatex/luaintro/03-08-2.lualtx38
1 files changed, 4 insertions, 4 deletions
diff --git a/Master/texmf-dist/doc/luatex/luaintro/03-08-2.lualtx3 b/Master/texmf-dist/doc/luatex/luaintro/03-08-2.lualtx3
index 35a14e3f833..ff4f003b516 100644
--- a/Master/texmf-dist/doc/luatex/luaintro/03-08-2.lualtx3
+++ b/Master/texmf-dist/doc/luatex/luaintro/03-08-2.lualtx3
@@ -3,7 +3,6 @@
%%
%% 1. Auflage
%%
-%% Beispiel 03-08-2 auf Seite 57.
%%
%% Copyright (C) 2013 Herbert Voss
%%
@@ -20,19 +19,20 @@
%StopShownPreambleCommands
\relax
+\bgroup\catcode`\%=12
\directlua{local out=assert(io.open("target/CP/xlist2.nodes","w"))
local n=node.types()
function printnode(head)
while head do
if head.id==8 then out:write(head.id..","..head.subtype)
- else out:write(string.format("\%3d",head.id))
+ else out:write(string.format("%3d",head.id))
end
if head.id==37 then
out:write("\string\"",string.char(head.char),"\string\" ->")
else out:write("\space\space\space\space->")
end
if head.next==nil then out:write("nil")
- else out:write(string.format("\%3d",head.next.id))
+ else out:write(string.format("%3d",head.next.id))
end
out:write(" ("..n[head.id].."->")
if head.next==nil then out:write("nil)\string\n")
@@ -44,5 +44,5 @@ end
return true
end
callback.register("post_linebreak_filter",printnode,"printnode")}
-abc1
+\egroup abc1
\bye