summaryrefslogtreecommitdiff
path: root/luaotfload.dtx
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-05-18 11:51:26 -0700
committerPhilipp Gesang <phg42.2a@gmail.com>2013-05-18 11:51:26 -0700
commit145f556ee90d4e46b897d5fac5a3d7387416f056 (patch)
tree191ff873a1143ecaaef9f3ad7459177621948349 /luaotfload.dtx
parent1ae16ddf7fbfde3eafedcbe1800592221ab751f3 (diff)
parent6a572d507fc8ec31ab02da469b07f166ca3e1011 (diff)
downloadluaotfload-145f556ee90d4e46b897d5fac5a3d7387416f056.tar.gz
Merge pull request #80 from phi-gamma/master
fix issue #79
Diffstat (limited to 'luaotfload.dtx')
-rw-r--r--luaotfload.dtx10
1 files changed, 10 insertions, 0 deletions
diff --git a/luaotfload.dtx b/luaotfload.dtx
index 9ed00b5..25fd8f0 100644
--- a/luaotfload.dtx
+++ b/luaotfload.dtx
@@ -1496,6 +1496,16 @@ if tex.luatexversion < luatex_version then
warning("LuaTeX v%.2f is old, v%.2f is recommended.",
tex.luatexversion/100,
luatex_version /100)
+ --- we install a fallback for older versions as a safety
+ if not node.end_of_math then
+ local math_t = node.id"math"
+ local traverse_nodes = node.traverse_id
+ node.end_of_math = function (n)
+ for n in traverse_nodes(math_t, n.next) do
+ return n
+ end
+ end
+ end
end
% \end{macrocode}