summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/context/sources
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/context/sources')
-rw-r--r--Master/texmf-dist/doc/context/sources/general/manuals/luatex/luatex-style.tex17
1 files changed, 10 insertions, 7 deletions
diff --git a/Master/texmf-dist/doc/context/sources/general/manuals/luatex/luatex-style.tex b/Master/texmf-dist/doc/context/sources/general/manuals/luatex/luatex-style.tex
index feca120eddb..b07190e2141 100644
--- a/Master/texmf-dist/doc/context/sources/general/manuals/luatex/luatex-style.tex
+++ b/Master/texmf-dist/doc/context/sources/general/manuals/luatex/luatex-style.tex
@@ -1,5 +1,7 @@
\startenvironment luatex-style
+% todo: use \useMPlibrary[lua]
+
\usemodule[abr-02]
\setuplayout
@@ -217,15 +219,16 @@
StopPage ;
\stopuseMPgraphic
-\starttexdefinition luaextraangle
- % we can also just access the last page and so in mp directly
- \ctxlua {
- context(\lastpage == 0 and 0 or \realfolio*360/\lastpage)
- }
-\stoptexdefinition
+% \starttexdefinition luaextraangle
+% % we can also just access the last page and so in mp directly
+% \ctxlua {
+% context(\lastpage == 0 and 0 or \realfolio*360/\lastpage)
+% }
+% \stoptexdefinition
\startuseMPgraphic{luanumber}
- luaextraangle := \luaextraangle;
+ % luaextraangle := \luaextraangle;
+ luaextraangle := if (LastPageNumber == 0) : 0 else : RealPageNumber * 360 / LastPageNumber fi;
luaorbitfactor := 0.25 ;
picture p ; p := lualogo ;
setbounds p to boundingbox fullcircle ;