diff options
author | Karl Berry <karl@freefriends.org> | 2021-03-06 21:58:15 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-03-06 21:58:15 +0000 |
commit | 974640d66e61e81cb197ad96fdff7b08343e4c5a (patch) | |
tree | 2e1f75f32f312b7f24ba82b4590ae230bcd6f399 /Master/texmf-dist/tex/context/base/mkiv/math-inc.lua | |
parent | b4fa72e61230aca75f7f6fbf988821f71edfb6b2 (diff) |
context
git-svn-id: svn://tug.org/texlive/trunk@58167 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/context/base/mkiv/math-inc.lua')
-rw-r--r-- | Master/texmf-dist/tex/context/base/mkiv/math-inc.lua | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/context/base/mkiv/math-inc.lua b/Master/texmf-dist/tex/context/base/mkiv/math-inc.lua index 010d29a359a..7c32adde6ca 100644 --- a/Master/texmf-dist/tex/context/base/mkiv/math-inc.lua +++ b/Master/texmf-dist/tex/context/base/mkiv/math-inc.lua @@ -20,6 +20,8 @@ local undent = buffers.undent local f_entity = string.formatters["&x%X;"] local f_blob = string.formatters['<?xml version="2.0"?>\n\n<!-- formula %i -->\n\n%s'] +local report_tags = logs.reporter("structure","tags") + local all = nil local back = nil @@ -62,7 +64,12 @@ local function getblob(n) local root = xml.load(full) for c in xml.collected(root,"formulacontent") do local index = tonumber(c.at.n) - all[index] = f_blob(index,beautify(xmltext(c,"math") or "")) + local data = beautify(xmltext(c,"math") or "") + if index and data then + all[index] = f_blob(index,data) + else + report_tags("no formula content id") + end end local it = mathematics.alphabets.regular.it for k, v in next, it.digits do back[v] = k end |