From 4ca0e50699e2f4fc4dbe8b1dc4fe528a51b5429d Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 27 Apr 2016 21:54:13 +0000 Subject: context (27apr16) git-svn-id: svn://tug.org/texlive/trunk@40787 c570f23f-e606-0410-a88d-b1316a301751 --- .../sources/general/manuals/luatex/luatex-style.tex | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'Master/texmf-dist/doc/context/sources') 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 ; -- cgit v1.2.3