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, 01 Feb 2020 14:48:21 +0100SageTeX: sagecommandline problemhttps://ask.sagemath.org/question/49724/sagetex-sagecommandline-problem/As a simple example of the problem I have encountered
\begin{sagecommandline}
sage: M=matrix.identity(6)
sage: M
sage: v=vector([k for k in [0..5]])
sage: v
\end{sagecommandline}
the output looks fine except that the printed matrix $M$ overlaps with the definition of the vector $v.$![image description](/upfiles/15804678132883916.png)
Is there a way to add some vertical space below the displayed matrix?Fri, 31 Jan 2020 11:51:09 +0100https://ask.sagemath.org/question/49724/sagetex-sagecommandline-problem/Comment by dazedANDconfused for <p>As a simple example of the problem I have encountered </p>
<pre><code>\begin{sagecommandline}
sage: M=matrix.identity(6)
sage: M
sage: v=vector([k for k in [0..5]])
sage: v
\end{sagecommandline}
</code></pre>
<p>the output looks fine except that the printed matrix $M$ overlaps with the definition of the vector $v.$<img alt="image description" src="/upfiles/15804678132883916.png"></p>
<p>Is there a way to add some vertical space below the displayed matrix?</p>
https://ask.sagemath.org/question/49724/sagetex-sagecommandline-problem/?comment=49739#post-id-49739Could you post the code for the entire LaTeX document? When I add code to get your snippet to run in Cocalc, I don't get boxes and there is no overlap.Sat, 01 Feb 2020 02:30:22 +0100https://ask.sagemath.org/question/49724/sagetex-sagecommandline-problem/?comment=49739#post-id-49739Comment by castor for <p>As a simple example of the problem I have encountered </p>
<pre><code>\begin{sagecommandline}
sage: M=matrix.identity(6)
sage: M
sage: v=vector([k for k in [0..5]])
sage: v
\end{sagecommandline}
</code></pre>
<p>the output looks fine except that the printed matrix $M$ overlaps with the definition of the vector $v.$<img alt="image description" src="/upfiles/15804678132883916.png"></p>
<p>Is there a way to add some vertical space below the displayed matrix?</p>
https://ask.sagemath.org/question/49724/sagetex-sagecommandline-problem/?comment=49743#post-id-49743You are completely right, thank you. In memoire documentclass it works fine, it is the elegantbook documentclass that makes the problem.Sat, 01 Feb 2020 14:48:21 +0100https://ask.sagemath.org/question/49724/sagetex-sagecommandline-problem/?comment=49743#post-id-49743