diff options
Diffstat (limited to 'tex/context/base/back-ini.lua')
-rw-r--r-- | tex/context/base/back-ini.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tex/context/base/back-ini.lua b/tex/context/base/back-ini.lua index 10d10c253..0c02e201a 100644 --- a/tex/context/base/back-ini.lua +++ b/tex/context/base/back-ini.lua @@ -8,6 +8,7 @@ if not modules then modules = { } end modules ['back-ini'] = { local next, type = next, type local format = string.format +local sind, cosd = math.sind, math.cosd backends = backends or { } local backends = backends @@ -91,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 + |