Skip to content

Commit

Permalink
allow characters for lte and gte in a few contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Jordan committed Aug 20, 2024
1 parent fe8f888 commit b3ac575
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion macros/contexts/contextInequalities.pl
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ sub Init {
TeX => '\le ',
class => 'Inequalities::BOP::inequality',
eval => 'evalLessThanOrEqualTo',
alternatives => ["\x{2264}"],
combine => 1
},
'=<' => {
Expand All @@ -170,6 +171,7 @@ sub Init {
TeX => '\ge ',
class => 'Inequalities::BOP::inequality',
eval => 'evalGreaterThanOrEqualTo',
alternatives => ["\x{2265}"],
combine => 1
},
'=>' => {
Expand Down Expand Up @@ -200,7 +202,8 @@ sub Init {
string => ' != ',
TeX => '\ne ',
class => 'Inequalities::BOP::inequality',
eval => 'evalNotEqualTo'
eval => 'evalNotEqualTo',
alternatives => ["\x{2260}"]
},

'and' => {
Expand Down
2 changes: 2 additions & 0 deletions macros/parsers/parserLinearInequality.pl
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ sub Init {
string => ' <= ',
TeX => '\le ',
kind => "le",
alternatives => ["\x{2264}"],
class => 'LinearInequality::inequality',
formulaClass => "LinearInequality"
},
Expand All @@ -126,6 +127,7 @@ sub Init {
TeX => '\ge ',
kind => 'ge',
reverse => 'le',
alternatives => ["\x{2265}"],
class => 'LinearInequality::inequality',
formulaClass => "LinearInequality"
},
Expand Down

0 comments on commit b3ac575

Please sign in to comment.