SageTeX: sagecommandline problem

asked 5 years ago

castor gravatar image

updated 5 years ago

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

Is there a way to add some vertical space below the displayed matrix?

Preview: (hide)

Comments

2

Could 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.

dazedANDconfused gravatar imagedazedANDconfused ( 5 years ago )

You are completely right, thank you. In memoire documentclass it works fine, it is the elegantbook documentclass that makes the problem.

castor gravatar imagecastor ( 5 years ago )