From 89ec47708d84d0a7951f952f5ba23191a8d67ed1 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Thu, 15 Jul 2010 16:46:40 +0300 Subject: Fix for \overwithdelims and brothers We now fill in two extra math constants, FractionDelimiterSize and FractionDelimiterDisplayStyleSize. See: http://tug.org/pipermail/luatex/2010-July/001741.html --- luaotfload.dtx | 3 +++ tests/math.tex | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/luaotfload.dtx b/luaotfload.dtx index b9cf7eb..7e6283b 100644 --- a/luaotfload.dtx +++ b/luaotfload.dtx @@ -672,6 +672,9 @@ local function def_font(...) fontdata.MathConstants[k] = v / units * size end end + -- for \overwithdelims + fontdata.MathConstants["FractionDelimiterSize"] = 1.01 * size + fontdata.MathConstants["FractionDelimiterDisplayStyleSize"] = 2.39 * size end end diff --git a/tests/math.tex b/tests/math.tex index 7f62896..0e07b2c 100644 --- a/tests/math.tex +++ b/tests/math.tex @@ -27,5 +27,12 @@ A \mathrel{\Uoverdelimiter "4 "2192 {a+b}} B \mathrel{\Uunderdelimiter "4 "2192 {a+b}} $$ +$$ +a \overwithdelims() b +$$ + + +\centerline{$ a \overwithdelims() b $} + \bye -- cgit v1.2.3