You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for the software, and especially the latest release, which solved a problem I did not know how to otherwise solve.
Three suggestions to consider putting in the TODO:
In the documentation, at least in the sagecommandline part, you note that you can write sage: as the prefix to have Sage run it. You might give an example to show that you use ....: for multiline commands.
When running sage test.sagetex.sage it would be great if in addition to the line number, it also noted the current file. I have include files and it can sometimes be confusing where the error lies. (I tried to add this myself using the currfile package but got lost in the internals of the TeXProcessor somehow.)
Finally, perhaps not possible: it would be great if sagecommandline also captured the traceback that gets printed on exceptions. (As to the reason that is of interest: I have a lab manual that shows students what appears, and sometimes tracebacks appear.)
Regards, Jim
The text was updated successfully, but these errors were encountered:
What I had in mind is illustrated by this file, which I just this minute tested and it compiles. I at least did not see what to do when I first tried multi-line lines so including it may prevent some user confusion.
% -*- coding: utf-8 -*-
\documentclass{article}
\usepackage{sagetex}
\usepackage{lipsum}
\begin{document}
% Text under Sage
\lipsum[1]
\begin{sagecommandline}
sage: total = 0
sage: for i in range(101):
....: total = total + i
sage: total
\end{sagecommandline}
\lipsum[2]
\end{document}
Thank you for the software, and especially the latest release, which solved a problem I did not know how to otherwise solve.
Three suggestions to consider putting in the TODO:
In the documentation, at least in the sagecommandline part, you note that you can write sage: as the prefix to have Sage run it. You might give an example to show that you use ....: for multiline commands.
When running sage test.sagetex.sage it would be great if in addition to the line number, it also noted the current file. I have include files and it can sometimes be confusing where the error lies. (I tried to add this myself using the currfile package but got lost in the internals of the TeXProcessor somehow.)
Finally, perhaps not possible: it would be great if sagecommandline also captured the traceback that gets printed on exceptions. (As to the reason that is of interest: I have a lab manual that shows students what appears, and sometimes tracebacks appear.)
Regards, Jim
The text was updated successfully, but these errors were encountered: