Hi, everyone!
I've been using the sagetex package of D. Drake for a while... very
useful! However, it seems that the current environments (sageblock,
sagesilent, sageverbatim, etc.) cannot support what I would like to
do. More precisely, I would like to display blocks with a "sage: "
prefix and which would also write the output, exactly like when we
copy it.
For instance, suppose I have the following sage session
{{{
sage: x = 4
sage: y = 5
sage: x + y
9
sage: w = Word('abcd')
sage: w
word: abcd
}}}
I would like to put something like that in my Latex file
{{{
\begin{sageblock}
x = 4
y = 5
x + y # or print x + y
w = Word('abcd')
w # or print w
\end{sageblock}
}}}
so that the output in my Latex document would be the first block (and
the block would indeed be executed). Is that easy to do? Is it already
possible?
Thank you for any help!
Alexandre
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org