ASKSAGE: Sage Q&A Forum - Individual question feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 29 Apr 2019 13:25:14 -0500What could be reasons for latex() output to stop working?https://ask.sagemath.org/question/46399/what-could-be-reasons-for-latex-output-to-stop-working/In the past i used the `latex()` output to generate latex source to use in my paper. This stopped working at some point, on three independent linux systems. Even sage scripts that produced such latex source code in the past don't do so anymore.
for example
epsilon_0 = var('epsilon_0', latex_name=r'\varepsilon_0')
latex(epsilon_0)
produces no output, not on the command line nor in my emacs *Sage* output buffer.
I assume i must have broken something. Where can I look? i use debian, and the debian sage packages to install and use sage.
Edit: correction: on two of the three system the latex() command does nothing, on the third it works. I can use that third system to generate the latex source for now. But it would be swell to fix on the other systems, too. The third system where it works is an Ubuntu, where i installed sage from source.Mon, 29 Apr 2019 06:49:14 -0500https://ask.sagemath.org/question/46399/what-could-be-reasons-for-latex-output-to-stop-working/Answer by vdelecroix for <p>In the past i used the <code>latex()</code> output to generate latex source to use in my paper. This stopped working at some point, on three independent linux systems. Even sage scripts that produced such latex source code in the past don't do so anymore. </p>
<p>for example </p>
<pre><code>epsilon_0 = var('epsilon_0', latex_name=r'\varepsilon_0')
latex(epsilon_0)
</code></pre>
<p>produces no output, not on the command line nor in my emacs <em>Sage</em> output buffer.</p>
<p>I assume i must have broken something. Where can I look? i use debian, and the debian sage packages to install and use sage. </p>
<p>Edit: correction: on two of the three system the latex() command does nothing, on the third it works. I can use that third system to generate the latex source for now. But it would be swell to fix on the other systems, too. The third system where it works is an Ubuntu, where i installed sage from source.</p>
https://ask.sagemath.org/question/46399/what-could-be-reasons-for-latex-output-to-stop-working/?answer=46402#post-id-46402This command does return a latex object
sage: epsilon_0 = var('epsilon_0', latex_name=r'\varepsilon_0')
sage: obj = latex(epsilon_0)
This object obj can be displayed via, for example, the print statement (or function if you moved to more Python3 complient coding)
sage: print obj
{\varepsilon_0}
Depending where you use this function (the console or the notebook or in a script?) then the command `latex(epsilon_0)` alone might produce or not a display on the screen.Mon, 29 Apr 2019 12:33:09 -0500https://ask.sagemath.org/question/46399/what-could-be-reasons-for-latex-output-to-stop-working/?answer=46402#post-id-46402Comment by stockh0lm for <p>This command does return a latex object</p>
<pre><code>sage: epsilon_0 = var('epsilon_0', latex_name=r'\varepsilon_0')
sage: obj = latex(epsilon_0)
</code></pre>
<p>This object obj can be displayed via, for example, the print statement (or function if you moved to more Python3 complient coding)</p>
<pre><code>sage: print obj
{\varepsilon_0}
</code></pre>
<p>Depending where you use this function (the console or the notebook or in a script?) then the command <code>latex(epsilon_0)</code> alone might produce or not a display on the screen.</p>
https://ask.sagemath.org/question/46399/what-could-be-reasons-for-latex-output-to-stop-working/?comment=46405#post-id-46405You are right, it was cocalc.org where the latex output worked. I think i didn't use it on my local linux yet.Mon, 29 Apr 2019 13:25:14 -0500https://ask.sagemath.org/question/46399/what-could-be-reasons-for-latex-output-to-stop-working/?comment=46405#post-id-46405