如何将Mathematica语法转换为latex?

Por*_*izm 5 html javascript latex wolfram-mathematica

wolfram alpha接受乳胶,但它不会输出到乳胶,

它导出明文,渲染图像和mathematica sytax.

有没有将输出转换为latex的javascript库?

Mathematica语法:

Cell[BoxData[FormBox[TagBox[RowBox[List[FractionBox["1", "2"], " ", RowBox[List["(", RowBox[List[RowBox[List["4", " ", SuperscriptBox["x", "2"]]], "+", "x", "+", "2"]], ")"]]]], Identity, Rule[TagBoxNote, List[Rule["Hyperlink", "1/2 (2+x+4 x^2)"]]]], TraditionalForm]], "Output", Rule[PageWidth, 500], Rule[Magnification, 1], Rule[CellMargins, List[List[0, 0], List[0, 0]]], Rule[ShowCellBracket, False], Rule[FontFamily, "Bitstream Charter"], Rule[FontSize, 14], Rule[NumberSeparator, "\[ThinSpace]"]]
Run Code Online (Sandbox Code Playgroud)

Latex语法

2x^2+\frac{x}{2} +1
Run Code Online (Sandbox Code Playgroud)

小智 1

我知道您可以使用TeXForm在 Mathematica 内部完成此操作

所以你会做类似的事情ToExpression["\\frac{a}{b}", TeXForm]