How to solve the problem that pandoc fails to convert latex formulas to docx

238 Views Asked by At

I want to convert the following latex formula into a formula in docx. The latex formula can be used normally on both mathtype and mathjaxjs.

$\left\{ {\begin{array}{*{20}{l}} {(m + 2)x = 1}\\ {3x - (m - 3){y^{\left| m \right| - 2}} + 4 = 0} \end{array}} \right.$

You can test latex to docx on the pandoc-try[https://pandoc.org/try/] website When I use pandoc to convert, the following warning message appears:

Could not convert TeX math \left\{ {\begin{array}{*{20}{l}} {(m + 2)x = 1}\\ {3x - (m - 3){y^{\left| m \right| - 2}} + 4 = 0} \end{array}} \right., rendering as TeX: t\{ {\begin{array}{*{20}{l}} {(m + 2)x = ^ unexpected "*" expecting white space, letter, "|" or "}"

I want the latex above to be converted to docx normally!! How can I solve this problem? thanks!!!

1

There are 1 best solutions below

1
accbear On

I confirmed this is a feature not yet supported by pandoc, please check out this issues_229