local node_insert_before = node.insert_before
local node_insert_after = node.insert_after
local node_hpack = node.hpack
-local round = tex.round
local id_penalty = node.id('penalty')
local id_glyph = node.id('glyph')
local attr_curjfnt = luatexbase.attributes['ltj@curjfnt']
local attr_yablshift = luatexbase.attributes['ltj@yablshift']
local attr_icflag = luatexbase.attributes['ltj@icflag']
+local cat_lp = luatexbase.catcodetables['latex-package']
local ITALIC = 1
local PACKED = 2
-- EXT: print \global if necessary
function ltj.ext_print_global()
- if ltj.isglobal=='global' then tex.sprint('\\global') end
+ if ltj.isglobal=='global' then tex.sprint(cat_lp, '\\global') end
end
-- main process
local s
local pt=node_type(p.id)
local base = debug_depth .. string.format('%X', has_attr(p,attr_icflag) or 0)
- .. ' ' .. pt .. ' ' .. p.subtype
+ .. ' ' .. pt .. ' ' .. tostring(p.subtype )
if pt == 'glyph' then
s = base .. ' ' .. utf.char(p.char) .. ' ' .. tostring(p.font)
.. ' (' .. print_scaled(p.height) .. '+'
s = s .. node.subtype(p.subtype)
end
print_fn(s)
- -- ここから数式用 node
+ -------- math node --------
elseif pt=='noad' then
s = base ; print_fn(s)
if p.nucleus then