roniemartinez / latex2mathml

Pure Python library for LaTeX to MathML conversion
MIT License
183 stars 25 forks source link

Problem with max operator #108

Closed ubavic closed 3 years ago

ubavic commented 3 years ago

I think that conversion of \max operator is little buggy. For example, if I type

latex2mathml.converter.convert("\\max f")

I get

<math xmlns="http://www.w3.org/1998/Math/MathML" display="inline">
  <mrow><mo>max</mo></mrow>
</math>

which is obviously wrong. Another example:

latex2mathml.converter.convert("\\max \\{a, b, c\\}")
<math xmlns="http://www.w3.org/1998/Math/MathML" display="inline">
  <mrow>
    <munder><mo>max</mo><mi>,</mi></munder>
    <mi>b</mi><mi>,</mi><mi>c</mi><mi>&#x0007D;</mi>
  </mrow>
</math>

Operators \min, \sup and \inf have same problem.

roniemartinez commented 2 years ago

@all-contributors please add @ubavic for bug

allcontributors[bot] commented 2 years ago

@roniemartinez

I've put up a pull request to add @ubavic! :tada: