Processing math: 100%

First time here? Check out the FAQ!

Ask Your Question
0

printing equations in latex inside cell

asked 13 years ago

indiajoe gravatar image

updated 13 years ago

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.

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
1

answered 13 years ago

kcrisman gravatar image

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.

Preview: (hide)
link

Comments

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

indiajoe gravatar imageindiajoe ( 13 years ago )
1

answered 8 years ago

jdk2py gravatar image

You shoul try something like

show(LatexExpr("\int x\cos(x)dx"))

Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 13 years ago

Seen: 3,453 times

Last updated: Dec 01 '11