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.Sat, 21 Sep 2019 00:37:24 +0200Latex commenthttps://ask.sagemath.org/question/47991/latex-comment/I would like to distribute some worksheet to student and collegue to show how SageMath is versatile. But I need to inlcude comments. I would prefer to typeset them in LaTeX, because the notebooks will be more pleasant. I have tried
show(LatexExpr("Hello world!))
but on my computer this doen't works. Is there a way to do that ?Fri, 20 Sep 2019 18:37:14 +0200https://ask.sagemath.org/question/47991/latex-comment/Comment by Emmanuel Charpentier for <p>I would like to distribute some worksheet to student and collegue to show how SageMath is versatile. But I need to inlcude comments. I would prefer to typeset them in LaTeX, because the notebooks will be more pleasant. I have tried</p>
<p>show(LatexExpr("Hello world!))</p>
<p>but on my computer this doen't works. Is there a way to do that ?</p>
https://ask.sagemath.org/question/47991/latex-comment/?comment=48001#post-id-48001A $\LaTeX$ file can be compiled as a PDF, readable with almost anything. A worksheet needs a running `Sage` installation to be used... unless you export it to PDF.
So where is the point of the worksheet ?Sat, 21 Sep 2019 00:37:24 +0200https://ask.sagemath.org/question/47991/latex-comment/?comment=48001#post-id-48001Answer by tmonteil for <p>I would like to distribute some worksheet to student and collegue to show how SageMath is versatile. But I need to inlcude comments. I would prefer to typeset them in LaTeX, because the notebooks will be more pleasant. I have tried</p>
<p>show(LatexExpr("Hello world!))</p>
<p>but on my computer this doen't works. Is there a way to do that ?</p>
https://ask.sagemath.org/question/47991/latex-comment/?answer=47993#post-id-47993On a code cell, `show(LatexExpr("\sqrt{2}"))` just works. Perhaps did you forget the closing quotes.
Note that you can add longer text by changing the type of a cell to "markdown" (instead of "code"), there, you can just add latex code as `$\sqrt{2}$`.Fri, 20 Sep 2019 20:51:36 +0200https://ask.sagemath.org/question/47991/latex-comment/?answer=47993#post-id-47993