Ask Your Question
2

Export notebook cell output as LaTeX?

asked 2014-01-24 01:41:15 -0500

Alasdair gravatar image

If I want to import Sage output from a notebook cell into a LaTeX document, I can uncheck the "Typeset" box at the top, and then run "latex(y)" on the output y.

But is there a better way, that doesn't require fiddling with the "Typeset" box every time I want raw LaTeX as output?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2014-01-24 03:00:23 -0500

calc314 gravatar image

You can leave the Typeset box checked and use the print command along with the latex command. For example,

f=x^2*sin(x)
print latex(f)

Gives me the desired LaTeX output.

edit flag offensive delete link more

Comments

Thanks very much!

Alasdair gravatar imageAlasdair ( 2014-01-24 11:21:05 -0500 )edit
1

answered 2014-01-24 04:22:40 -0500

ppurka gravatar image

Right click on the rendered math and Click on "Show math as" -> "tex commands", and then you will get the latex.

edit flag offensive delete link more

Comments

Thanks very much!

Alasdair gravatar imageAlasdair ( 2014-01-24 11:21:15 -0500 )edit

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: 2014-01-24 01:41:15 -0500

Seen: 423 times

Last updated: Jan 24 '14