Ask Your Question
1

How to download as LaTeX, and have output boxes rendered

asked 2021-08-23 11:16:15 +0100

jakupl gravatar image

I'm using the Jupyter notebook, and the "download as .tex" option works great for me. The only problem is, I want the output to be rendered. Inside the notebook, I have '%display latex' set, so all output is rendered in latex. However to my great surprise, when I export the worksheet into a .tex file, the output boxes revert to normal unformatted text. Is there a way to make the latex formatting of outputs "survive" when saving it as a LaTeX document?

I'm not afraid of writing the LaTeX myself, but this workflow needs to work for exams, where time is a factor. Thanks for your help

SageMath version 9.0, Release Date: 2020-01-01 │ │ Using Python 3.8.10. Running Linux.

I would love to attach pictures, but apparently my "karma" is insufficient :D

edit retag flag offensive close merge delete

Comments

Welcome to Ask Sage! Thank you for your question!

slelievre gravatar imageslelievre ( 2021-08-23 11:51:29 +0100 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2021-08-23 14:40:23 +0100

eric_g gravatar image

That LaTeX-displayed outputs were not rendered when exporting to LaTeX or PDF was a bug, which has been fixed in SageMath 9.2. So you should upgrade your version of SageMath. Simply install the latest stable version (9.3 or 9.4 within a few days).

edit flag offensive delete link more

Comments

Yes updating solved the problem. That's awesome. Thanks for the help :)

jakupl gravatar imagejakupl ( 2021-08-23 16:15:50 +0100 )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

1 follower

Stats

Asked: 2021-08-23 11:16:15 +0100

Seen: 314 times

Last updated: Aug 23 '21