tmke8 / latex2mmlc

https://tmke8.github.io/latex2mmlc/
MIT License
0 stars 0 forks source link

Unsupported environments #154

Open tmke8 opened 4 months ago

tmke8 commented 4 months ago
tmke8 commented 4 months ago

Example of smallmatrix:

Input:

\Big(\begin{smallmatrix}
  a & b\\
  c & d
\end{smallmatrix}\Big)

Output:

<math display="block">
    <mo maxsize="1.623em" minsize="1.623em">(</mo>
    <mtable scriptlevel="1">
        <mtr>
            <mtd>
                <mi>a</mi>
            </mtd>
            <mtd>
                <mi>b</mi>
            </mtd>
        </mtr>
        <mtr>
            <mtd>
                <mi>c</mi>
            </mtd>
            <mtd>
                <mi>d</mi>
            </mtd>
        </mtr>
    </mtable>
    <mo maxsize="1.623em" minsize="1.623em">)</mo>
</math>
tmke8 commented 4 months ago

Test case for array:

\left(\begin{array}{ccc|c}
-2 & 3 & 1 & 0 \\
 1 & 0 & 1 & 3
\end{array}\right)