[Tex/LaTex] What symbolic math software can output latex quickly

math-mode

Many times when I am using a symbolic computation tool (like Maple), I want to take the calculation/ and or the results and have them formatted into LaTex.

Is there a specific piece of software that does symbolic computing (Maple, MatLab, Mathematica…) and also allows you to quickly copy your work and paste it as math mode Latex or export a clean LaTex file?

For example I have used the export as latex option in the past for Maple, but it includes a lot of code just to display other elements of the worksheet that I am not interested in. Ideally I would like to avoid reformatting the equations I have written as much as possible.

(Note I have tried MathSage\SageTex and everything it offers but the combination of bugs and limited support outside of Linux makes it a problem to use).

Best Answer

In Mathematica, you can use TeXForm:

In[1]:= TrigExpand[Sin[5 x]] // TeXForm

Out[1]//TeXForm=
\sin ^5(x)+5 \sin (x) \cos ^4(x)-10 \sin ^3(x) \cos ^2(x)

You can also right click and select Copy As -> LaTeX

enter image description here