# Is it possible to call a Sage command from within a text cell in the Sage Notebook and display the output inline as latex?

I know it is possible to insert latex inline within a text cell in the Sage Notebook, but is it possible to have that being the output of a Sage command? Thanks!

edit retag close merge delete

Sort by » oldest newest most voted

No you can't. But you can take the output of a sage command and get the latex out of it. To do so right click on the output and then select Show math as -> tex command.

You can then paste that latex into the text cell, enclosed within \$ symbols.

Edit: I forgot to add. You need to either use view() or pretty_print() or enable the Typeset check box to get a typeset output.

more