Ask Your Question
2

Export notebook cell output as LaTeX?

asked 2014-01-24 08:41:15 +0200

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 10:00:23 +0200

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 18:21:05 +0200 )edit
1

answered 2014-01-24 11:22:40 +0200

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 18:21:15 +0200 )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 08:41:15 +0200

Seen: 1,483 times

Last updated: Jan 24 '14