On Tue, 24 May 2011 at 01:28PM -0700, Alexandre Blondin Massé wrote:
> 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?That should be possible. I think you can add the "sage: " to the line when typesetting, and then pull in the results just like we do now. I'll look into this. Dan -- --- Dan Drake ----- http://mathsci.kaist.ac.kr/~drake -------
signature.asc
Description: Digital signature
