diff options
Diffstat (limited to 'Master/texmf-dist/tex/context/base/back-ini.lua')
-rw-r--r-- | Master/texmf-dist/tex/context/base/back-ini.lua | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/context/base/back-ini.lua b/Master/texmf-dist/tex/context/base/back-ini.lua index 39de73741e2..0c02e201a68 100644 --- a/Master/texmf-dist/tex/context/base/back-ini.lua +++ b/Master/texmf-dist/tex/context/base/back-ini.lua @@ -6,6 +6,9 @@ if not modules then modules = { } end modules ['back-ini'] = { license = "see context related readme files" } +local next, type = next, type +local format = string.format +local sind, cosd = math.sind, math.cosd backends = backends or { } local backends = backends @@ -73,7 +76,7 @@ end statistics.register("used backend", function() local bc = backends.current if bc ~= "unknown" then - return string.format("%s (%s)",bc,backends[bc].comment or "no comment") + return format("%s (%s)",bc,backends[bc].comment or "no comment") else return nil end @@ -89,3 +92,11 @@ tables.vfspecials = allocate { startslant = comment, stopslant = comment, } + +-- -- experimental code -- + +function commands.pdfrotation(a) + local s, c = sind(a), cosd(a) + context("%s %s %s %s",c,s,-s,c) +end + |