Debian Codegraph @

texmf-dist/tex/lualatex/lualatex-math/lualatex-math.lua

raw
1 --
2 -- This is file `lualatex-math.lua',
3 -- generated with the docstrip utility.
4 --
5 -- The original source files were:
6 --
7 -- lualatex-math.dtx (with options: `lua')
8 --
9 -- This is a generated file.
10 --
11 -- Copyright 2011-2020 Philipp Stephani
12 --
13 -- This file may be distributed and/or modified under the
14 -- conditions of the LaTeX Project Public License, either
15 -- version 1.3c of this license or (at your option) any later
16 -- version. The latest version of this license is in
17 --
18 -- http://www.latex-project.org/lppl.txt
19 --
20 -- and version 1.3c or later is part of all distributions of
21 -- LaTeX version 2009/09/24 or later.
22 --
23 lualatex = lualatex or {}
24 lualatex.math = lualatex.math or {}
25 luatexbase.provides_module({
26 name = "lualatex-math",
27 date = "2013/08/03",
28 version = 1.3,
29 description = "Patches for mathematics typesetting with LuaLaTeX",
30 author = "Philipp Stephani",
31 licence = "LPPL v1.3+"
32 })
33 local unpack = unpack or table.unpack
34 local cctb = luatexbase.catcodetables or
35 {string = luatexbase.registernumber("catcodetable@string")}
36 function lualatex.math.print_class_fam_slot(char)
37 local code = tex.getmathcode(char)
38 local class, family, slot = unpack(code)
39 local result = string.format("%i %i %i ", class, family, slot)
40 tex.sprint(cctb.string, result)
41 end
42 return lualatex.math