summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/oberdiek/oberdiek.magicnum.lua
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-04-12 22:56:39 +0000
committerKarl Berry <karl@freefriends.org>2011-04-12 22:56:39 +0000
commit3c9b5c2960ae2455180bdb3a4e67bf10175b39af (patch)
tree53ac9731c23e82f60349ec920ed8d816738913dc /Master/texmf-dist/scripts/oberdiek/oberdiek.magicnum.lua
parentf437333cf5d63d69f5ab9fd1eb553af4175037d0 (diff)
oberdiek (12apr11)
git-svn-id: svn://tug.org/texlive/trunk@22061 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/oberdiek/oberdiek.magicnum.lua')
-rw-r--r--Master/texmf-dist/scripts/oberdiek/oberdiek.magicnum.lua11
1 files changed, 7 insertions, 4 deletions
diff --git a/Master/texmf-dist/scripts/oberdiek/oberdiek.magicnum.lua b/Master/texmf-dist/scripts/oberdiek/oberdiek.magicnum.lua
index bd5ee8647c3..f4dc63541b1 100644
--- a/Master/texmf-dist/scripts/oberdiek/oberdiek.magicnum.lua
+++ b/Master/texmf-dist/scripts/oberdiek/oberdiek.magicnum.lua
@@ -8,7 +8,7 @@
--
-- This is a generated file.
--
--- Copyright (C) 2007, 2009, 2010 by
+-- Copyright (C) 2007, 2009, 2010, 2011 by
-- Heiko Oberdiek <heiko.oberdiek at googlemail.com>
--
-- This work may be distributed and/or modified under the
@@ -32,9 +32,12 @@
-- and the derived files
-- magicnum.sty, magicnum.pdf, magicnum.ins, magicnum.drv, magicnum.txt,
-- magicnum-test1.tex, magicnum-test2.tex, magicnum-test3.tex,
--- magicnum.lua, oberdiek.magicnum.lua.
+-- magicnum-test4.tex, magicnum.lua, oberdiek.magicnum.lua.
--
module("oberdiek.magicnum", package.seeall)
+function getversion()
+ tex.write("2011/04/10 v1.4")
+end
local data = {
["tex.catcode"] = {
[0] = "escape",
@@ -203,7 +206,7 @@ local data = {
["setorigin"] = 0
}
}
-function get(name, catcodetable)
+function get(name)
local startpos, endpos, category, entry =
string.find(name, "^(%a[%a%d%.]*)%.(-?[%a%d]+)$")
if not entry then
@@ -227,7 +230,7 @@ function get(name, catcodetable)
end
value = "" .. value
end
- tex.print(catcodetable, value)
+ tex.write(value)
end
--
-- End of File `oberdiek.magicnum.lua'.