# printing equations in latex inside cell

How can I print equation in latex inside a cell in the sage's browser interface?

The %latex command converts the entire cell to latex. I only want to print certain equations in latex.

The latex(eqn) prints out the eqn in latex syntax, but it is not rendering and showing me the eqn in latex fonts.

I tried out the function 'view()'. It also is giving me the syntax as output, not the rendered latex eqn.

edit retag close merge delete

Sort by » oldest newest most voted

You have two options, if I'm understanding your question correctly.

• Use the TinyMCE editor (this is what happens if you Shift-Click on a blue line in the notebook, instead of just clicking for a cell) to put LaTeX in between cells.
• Use the show command. Just type show(x^2) to see what I mean.

This link may have more useful information.

more

Oh, thanks. I was trying out various things like show("$\frac{2}{49 \, \alpha} + x^{2}$") but it didn't work. But as u said simply giving show(x^2+4/(98*alpha)) worked !! Thanks..

( 2011-12-01 18:29:08 -0500 )edit

You shoul try something like

more