Ask Your Question
2

Export notebook cell output as LaTeX?

asked 11 years ago

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?

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
1

answered 11 years ago

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.

Preview: (hide)
link

Comments

Thanks very much!

Alasdair gravatar imageAlasdair ( 11 years ago )
1

answered 11 years ago

ppurka gravatar image

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

Preview: (hide)
link

Comments

Thanks very much!

Alasdair gravatar imageAlasdair ( 11 years ago )

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: 11 years ago

Seen: 2,231 times

Last updated: Jan 24 '14