Skip to content

Commit

Permalink
Update mathtools.sty.ltxml (#2418)
Browse files Browse the repository at this point in the history
Correct definitions of symbols involving colon
  • Loading branch information
fiveseven-lambda authored Sep 24, 2024
1 parent 7643037 commit 4898ab2
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions lib/LaTeXML/Package/mathtools.sty.ltxml
Original file line number Diff line number Diff line change
Expand Up @@ -722,19 +722,27 @@ DefMathI('\vcentcolon', undef, ':', role => 'RELOP');
DefMathI('\ordinarycolon', undef, ':', role => 'RELOP');

DefMath('\dblcolon', "::", role => 'RELOP');
# taken from txfonts.sty.ltxml

DefMath('\coloneqq', "\x{2254}", role => 'RELOP');
DefMath('\Coloneqq', "\x{2A74}", role => 'RELOP');
DefMath('\coloneq', ":-", role => 'RELOP');
DefMath('\Coloneq', "::-", role => 'RELOP');
DefMath('\coloneq', "\x{2254}", role => 'RELOP');
DefMath('\Coloneq', "\x{2A74}", role => 'RELOP');
DefMath('\eqqcolon', "\x{2255}", role => 'RELOP');
DefMath('\Eqqcolon', "=::", role => 'RELOP');
DefMath('\eqcolon', "-:", role => 'RELOP');
DefMath('\Eqcolon', "-::", role => 'RELOP');
DefMath('\eqcolon', "\x{2255}", role => 'RELOP');
DefMath('\Eqcolon', "=::", role => 'RELOP');
DefMath('\colonapprox', ":\x{2248}", role => 'RELOP');
DefMath('\Colonapprox', "::\x{2248}", role => 'RELOP');
DefMath('\approxcolon', "\x{2248}:", role => 'RELOP');
DefMath('\Approxcolon', "\x{2248}::", role => 'RELOP');
DefMath('\colonsim', ":\x{223C}", role => 'RELOP');
DefMath('\Colonsim', "::\x{223C}", role => 'RELOP');
DefMath('\simcolon', "\x{223C}:", role => 'RELOP');
DefMath('\Simcolon', "\x{223C}::", role => 'RELOP');
DefMath('\colondash', ":-", role => 'RELOP');
DefMath('\Colondash', "::-", role => 'RELOP');
DefMath('\dashcolon', "-:", role => 'RELOP');
DefMath('\Dashcolon', "-::", role => 'RELOP');

DefMathI('\nuparrow', undef, UTF(0x2909), role => 'ARROW'); # could not find arrow with vertical line
DefMathI('\ndownarrow', undef, UTF(0x2908), role => 'ARROW'); # see above
Expand Down

0 comments on commit 4898ab2

Please sign in to comment.