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.Wed, 14 Jun 2023 20:11:23 +0200Failing render of long latex expression in jupyter notebook.https://ask.sagemath.org/question/69165/failing-render-of-long-latex-expression-in-jupyter-notebook/ I have a ridiculously long latex expression in a jupyter notebook that does not render. Does anybody know if/how to expand the accepted latex expression length so it might render? It's 10547 characters long.BobBWed, 14 Jun 2023 20:11:23 +0200https://ask.sagemath.org/question/69165/Render LaTeX expression in SageMath 9.3https://ask.sagemath.org/question/57396/render-latex-expression-in-sagemath-93/ In SageMath up to version 9.2 calling a cell consisting of the line show(LatexExpr(r'\infty')) in a Jupyter notebook would display the infinity symbol using LaTeX rendering. In SageMath 9.3 it displays the LaTeX string itself. How do I revert to the previous behavior?
This is unrelated to whether or not one has set %display latex. The command view is not an option because it opens a separate viewer which is not what I want.
Since this change of behavior breaks a lot of my notebooks, any help is much appreciated.CBaerWed, 02 Jun 2021 08:53:35 +0200https://ask.sagemath.org/question/57396/how to render a latex string in a notebook cellhttps://ask.sagemath.org/question/52357/how-to-render-a-latex-string-in-a-notebook-cell/Say we have a string variable `s = "some context: $x = 3$"`. The string s is rather simple latex, but is not just an equation. I would like to display the typeset version of `s` in a notebook cell, without having to retype the string by hand in the cell. Thanks for any help.jbaxterMon, 06 Jul 2020 17:03:24 +0200https://ask.sagemath.org/question/52357/Is there a function to render latex or html in a notebook from a string ?https://ask.sagemath.org/question/7769/is-there-a-function-to-render-latex-or-html-in-a-notebook-from-a-string/Some user-interface method are:
1. set the "typeset" flag at the top of the notebook.
2. Use %html or %latex in the beginning of a cell.
3. Use "shift+click" to open a new "tinymce" cell (for both: latex and html and more)
or code can be called like:
1. view(...some sage expression...): to produce rendered latex
2. print '...some html...no latex....': renders html without latex
I'm looking for a "render" command like
render('< html > < b > Header < /b > < p >Some $ x ^ 2 $ formula< /p >< /html >')
for mix html and latex formulas.
Maybe calling tinymce functionality from my code, but how ?
**Header**
Some $ x ^ 2 $ formula.
PedroSat, 20 Nov 2010 13:08:27 +0100https://ask.sagemath.org/question/7769/