summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/luatex/base/luatexref-env.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/luatex/base/luatexref-env.tex')
-rw-r--r--Master/texmf-dist/doc/luatex/base/luatexref-env.tex25
1 files changed, 23 insertions, 2 deletions
diff --git a/Master/texmf-dist/doc/luatex/base/luatexref-env.tex b/Master/texmf-dist/doc/luatex/base/luatexref-env.tex
index 7917b9b1976..fe5256f9b9b 100644
--- a/Master/texmf-dist/doc/luatex/base/luatexref-env.tex
+++ b/Master/texmf-dist/doc/luatex/base/luatexref-env.tex
@@ -58,6 +58,17 @@
}%
}
+\def\showid#1{\ctxlua
+ { do
+ local t = string.split('#1',',')
+ tex.sprint('\\type{'.. node.id(t[1]) .. '}')
+ if t[2] then
+ tex.sprint(', \\type{'.. node.subtype(t[2]) .. '}')
+ end
+ end
+ }%
+}
+
\def\todo#1%
{\dontleavehmode{\bf\red <TODO: #1>}}
@@ -152,10 +163,20 @@
StopPage ;
\stopuseMPgraphic
+\def\luaextraangle{\directlua{
+ if \lastpage == 0 then
+ luaextraangle = 0;
+ else
+ luaextraangle = \realfolio*360/\lastpage;
+ end
+ tex.print(luaextraangle)
+}}
+
\startuseMPgraphic{luanumber}
\includeMPgraphic{lualogo}
-% luaextraangle := \realfolio*360/\lastpage ;
- luaextraangle := 10 * ( (\realfolio-2)*36/(\lastpage-2) ) ;
+ % luaextraangle := \realfolio*360/\lastpage ;
+ % luaextraangle := 10 * ( (\realfolio-2)/(\lastpage-2)*36 ) ;
+ luaextraangle := \luaextraangle;
picture p ; p := lualogo ;
setbounds p to boundingbox fullcircle ;
draw p ysized 1cm ;