6

wolfram alpha accepts latex, but it does not export to latex,

it exports plaintext,rendered images and mathematica sytax.

Is there any javascript library that converts the output to latex?

Mathematica syntax:

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 syntax

2x^2+\frac{x}{2} +1
Porizm
  • 531
  • 4
  • 16

1 Answers1

1

I know that you can do it within Mathematica itself using TeXForm

So you would do something like ToExpression["\\frac{a}{b}", TeXForm]

Stuart
  • 330
  • 4
  • 10
  • This is not the solution, I am asking for a javascript library, not how to use mathematica. I already know ToExpression. Thanks for your suggestion. – Porizm Feb 11 '13 at 15:17