ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 23 Aug 2021 16:15:50 +0200How to download as LaTeX, and have output boxes renderedhttps://ask.sagemath.org/question/58626/how-to-download-as-latex-and-have-output-boxes-rendered/ 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 :DMon, 23 Aug 2021 11:16:15 +0200https://ask.sagemath.org/question/58626/how-to-download-as-latex-and-have-output-boxes-rendered/Comment by slelievre for <p>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?</p>
<p>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</p>
<p>SageMath version 9.0, Release Date: 2020-01-01 │
│ Using Python 3.8.10.
Running Linux.</p>
<p>I would love to attach pictures, but apparently my "karma" is insufficient :D</p>
https://ask.sagemath.org/question/58626/how-to-download-as-latex-and-have-output-boxes-rendered/?comment=58627#post-id-58627Welcome to Ask Sage! Thank you for your question!Mon, 23 Aug 2021 11:51:29 +0200https://ask.sagemath.org/question/58626/how-to-download-as-latex-and-have-output-boxes-rendered/?comment=58627#post-id-58627Answer by eric_g for <p>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?</p>
<p>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</p>
<p>SageMath version 9.0, Release Date: 2020-01-01 │
│ Using Python 3.8.10.
Running Linux.</p>
<p>I would love to attach pictures, but apparently my "karma" is insufficient :D</p>
https://ask.sagemath.org/question/58626/how-to-download-as-latex-and-have-output-boxes-rendered/?answer=58639#post-id-58639That 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). Mon, 23 Aug 2021 14:40:23 +0200https://ask.sagemath.org/question/58626/how-to-download-as-latex-and-have-output-boxes-rendered/?answer=58639#post-id-58639Comment by jakupl for <p>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). </p>
https://ask.sagemath.org/question/58626/how-to-download-as-latex-and-have-output-boxes-rendered/?comment=58642#post-id-58642Yes updating solved the problem. That's awesome.
Thanks for the help :)Mon, 23 Aug 2021 16:15:50 +0200https://ask.sagemath.org/question/58626/how-to-download-as-latex-and-have-output-boxes-rendered/?comment=58642#post-id-58642