Skip to content

Math parsing problem of \boldsymbol{0} ? #926

Description

@asmaier

When converting the following formula to MathML (Mac OS X, v0.8.2 of LaTeXML), it seems the number 0 somehow get's lost:

$ latexmlmath "\displaystyle\boldsymbol{0}" --preload=amsmath
<?xml version="1.0" encoding="UTF-8"?>
<math xmlns="http://www.w3.org/1998/Math/MathML" alttext="\displaystyle\boldsymbol{0}" display="block">
  <mn/>
</math>

One can see in the MathML output, that the number 0 is missing. It doesn't happen with other numbers like \boldsymbol{1}:

$ latexmlmath "\displaystyle\boldsymbol{1}" --preload=amsmath
<?xml version="1.0" encoding="UTF-8"?>
<math xmlns="http://www.w3.org/1998/Math/MathML" alttext="\displaystyle\boldsymbol{1}" display="block">
  <mn>𝟏</mn>
</math>

It also doesn't happen, if I change the formula and write the 0 without \boldsymbol:

$ latexmlmath "\displaystyle 0" --preload=amsmath
<?xml version="1.0" encoding="UTF-8"?>
<math xmlns="http://www.w3.org/1998/Math/MathML" alttext="\displaystyle 0" display="block">
  <mn>0</mn>
</math>

What is going on?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions