如何将Mathematica语法转换为latex?

时间:2013-02-10 20:27:17

标签: javascript html latex wolfram-mathematica

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

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

是否有任何javascript库将输出转换为latex?

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]"]]

Latex语法

2x^2+\frac{x}{2} +1

1 个答案:

答案 0 :(得分:1)

我知道您可以使用TeXForm

在Mathematica中自行完成

所以你会做ToExpression["\\frac{a}{b}", TeXForm]

之类的事情