summaryrefslogtreecommitdiff
path: root/tex/context/base/back-ini.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/back-ini.lua')
-rw-r--r--tex/context/base/back-ini.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/tex/context/base/back-ini.lua b/tex/context/base/back-ini.lua
index 6f58b3262..bdd931abd 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
@@ -95,3 +96,11 @@ tables.vfspecials = allocate {
startslant = comment,
stopslant = comment,
}
+
+-- experimental code --
+
+function commands.pdfrotation(a) -- somewhat weird here
+ local s, c = sind(a), cosd(a)
+ context("%0.6f %0.6f %0.6f %0.6f",c,s,-s,c)
+end
+