Skip to content

Commit

Permalink
feat(math): Support more integral-like operators
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierNicole authored and alerque committed Sep 8, 2021
1 parent d439a64 commit 90a6c44
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions core/math.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,14 @@ local operatorAtomTypes = {
[''] = atomType.bigOperator,
[''] = atomType.bigOperator,
[''] = atomType.bigOperator,
[''] = atomType.bigOperator
[''] = atomType.bigOperator,
[''] = atomType.bigOperator,
[''] = atomType.bigOperator
}

local subscriptBigOps =
{'', '', ''}

-- Foward declaration
local newSpace

Expand Down Expand Up @@ -566,7 +571,7 @@ local _bigOpSubscript = _subscript {
shape = function(self)
if not (self.mode == mathMode.display
or self.mode == mathMode.displayCramped)
or (self.base and self.base.text == "") then
or (self.base and contains(subscriptBigOps, self.base.text)) then
_subscript.shape(self)
return
end
Expand Down

0 comments on commit 90a6c44

Please sign in to comment.