I am writing an article with some embedded Sage code, using Sagetex for the purpose. Mostly it works well, with multiple uses of the
sageexample environment. However, there are several things I'd like to be able to do:
- Decrease the space between the sage commands
- Have the "sage" keyword typeset in a different color (like in the
- Alternatively, typeset the
sagecommandlineenvironment without line numbers.
The documentation, while probably complete, doesn't describe easy ways to do such things.
I also have the occasional Sage output which is different from when I run Sage in a notebook. Usually I check that the Sage commands give the result I want, then I put all the commands inside a
sageexample environment and run latex-sage-latex on my file. But I'm finding sometimes the output typeset in my latex file is very different from what I see in the notebook. This is particularly noticeable with the various
simplify commands. I can't seem to create a MWE, so I'm wondering if this is a known general problem, for which there's an easy fix?