summaryrefslogtreecommitdiff
path: root/doc/context/sources/general/manuals/luatex/luatex-style.tex
diff options
context:
space:
mode:
authorContext Git Mirror Bot <phg42.2a@gmail.com>2016-04-27 00:21:27 +0200
committerContext Git Mirror Bot <phg42.2a@gmail.com>2016-04-27 00:21:27 +0200
commitdc28d14e7a7774340b8929572f24517a14bf0ebd (patch)
treeebf3364df285341ffee6c5dfb1d24d008972b502 /doc/context/sources/general/manuals/luatex/luatex-style.tex
parent4668b7323a6bc1b01e72418fb646b697d68bbcb7 (diff)
downloadcontext-dc28d14e7a7774340b8929572f24517a14bf0ebd.tar.gz
2016-04-27 00:05:00
Diffstat (limited to 'doc/context/sources/general/manuals/luatex/luatex-style.tex')
-rw-r--r--doc/context/sources/general/manuals/luatex/luatex-style.tex17
1 files changed, 10 insertions, 7 deletions
diff --git a/doc/context/sources/general/manuals/luatex/luatex-style.tex b/doc/context/sources/general/manuals/luatex/luatex-style.tex
index feca120ed..b07190e21 100644
--- a/doc/context/sources/general/manuals/luatex/luatex-style.tex
+++ b/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 ;