summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/lualatex/lualatex-math/lualatex-math.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/lualatex/lualatex-math/lualatex-math.lua')
-rw-r--r--Master/texmf-dist/tex/lualatex/lualatex-math/lualatex-math.lua18
1 files changed, 9 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/lualatex/lualatex-math/lualatex-math.lua b/Master/texmf-dist/tex/lualatex/lualatex-math/lualatex-math.lua
index 4a7120e5c89..b31a4e7ca1f 100644
--- a/Master/texmf-dist/tex/lualatex/lualatex-math/lualatex-math.lua
+++ b/Master/texmf-dist/tex/lualatex/lualatex-math/lualatex-math.lua
@@ -8,7 +8,7 @@
--
-- This is a generated file.
--
--- Copyright 2011, 2012 Philipp Stephani
+-- Copyright 2011, 2012, 2013 Philipp Stephani
--
-- This file may be distributed and/or modified under the
-- conditions of the LaTeX Project Public License, either
@@ -22,28 +22,28 @@
--
require("luatexbase.modutils")
require("luatexbase.cctb")
+lualatex = lualatex or {}
+lualatex.math = lualatex.math or {}
local err, warn, info, log = luatexbase.provides_module({
name = "lualatex-math",
- date = "2011/05/05",
- version = 0.1,
+ date = "2013/08/03",
+ version = 1.3,
description = "Patches for mathematics typesetting with LuaLaTeX",
author = "Philipp Stephani",
licence = "LPPL v1.3+"
})
-local unpack = unpack
-local string = string
-local tex = tex
+local unpack = unpack or table.unpack
local cctb = luatexbase.catcodetables
-module("lualatex.math")
-function print_fam_slot(char)
+function lualatex.math.print_fam_slot(char)
local code = tex.getmathcode(char)
local class, family, slot = unpack(code)
local result = string.format("%i %i ", family, slot)
tex.sprint(cctb.string, result)
end
-function print_class_fam_slot(char)
+function lualatex.math.print_class_fam_slot(char)
local code = tex.getmathcode(char)
local class, family, slot = unpack(code)
local result = string.format("%i %i %i ", class, family, slot)
tex.sprint(cctb.string, result)
end
+return lualatex.math