diff options
author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-05-11 00:41:24 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-05-11 00:41:24 +0200 |
commit | cb364747722b9ce55d3301af24d5740fd511cf79 (patch) | |
tree | 7b6691a7dcd10e8b0021eb34494b14a315431096 /tex/context/base/mkiv/math-noa.lua | |
parent | e5703477ae326ba910515aeab93000828516954a (diff) | |
download | context-cb364747722b9ce55d3301af24d5740fd511cf79.tar.gz |
2016-05-10 23:48:00
Diffstat (limited to 'tex/context/base/mkiv/math-noa.lua')
-rw-r--r-- | tex/context/base/mkiv/math-noa.lua | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/tex/context/base/mkiv/math-noa.lua b/tex/context/base/mkiv/math-noa.lua index d3409e01b..95b5a8ac9 100644 --- a/tex/context/base/mkiv/math-noa.lua +++ b/tex/context/base/mkiv/math-noa.lua @@ -1236,10 +1236,15 @@ italics[math_char] = function(pointer,what,n,parent) if not next_noad then if n == 1 then -- only at the outer level .. will become an option (always,endonly,none) if trace_italics then - report_italics("method %a, flagging italic correction between %C and end math",method,correction,char) + report_italics("method %a, flagging italic correction %p between %C and end math",method,correction,char) end - setattr(pointer,a_mathitalics,101) - setattr(parent,a_mathitalics,101) + if correction > 0 then + correction = correction + 100 + else + correction = correction - 100 + end + setattr(pointer,a_mathitalics,correction) + setattr(parent,a_mathitalics,correction) end end end @@ -1258,6 +1263,8 @@ enable = function() if trace_italics then report_italics("enabling math italics") end + -- we enable math (unless already enabled elsewhere) + typesetters.italics.enablemath() enable = false end |