Re: [sage-devel] Feature request for sagetex

2009-11-20 Thread Dan Drake
On Fri, 20 Nov 2009 at 11:16AM +0100, Nicolas M. Thiery wrote: > > In Python, I could so something like > > > > the_verbatim_line.replace('sage: ', '', 1) > > > > but LaTeX does not make string handling easy. > > Precisely. So it sounds tempting to have latex write a quoted string > in the

Re: [sage-devel] Feature request for sagetex

2009-11-20 Thread Nicolas M. Thiery
Hi Dan! On Wed, Nov 18, 2009 at 09:10:20AM +0900, Dan Drake wrote: > On Tue, 17 Nov 2009 at 11:32PM +0100, Nicolas M. Thiery wrote: > > I have a feature request: an environment where I could use the same > > syntax as in usual doctests (without the sage results): > > > > \begin{sageexam

Re: [sage-devel] Feature request for sagetex

2009-11-17 Thread Dan Drake
Hi Nicolas, On Tue, 17 Nov 2009 at 11:32PM +0100, Nicolas M. Thiery wrote: > I have a feature request: an environment where I could use the same > syntax as in usual doctests (without the sage results): > > \begin{sageexample} > sage: 1 + 1 > sage: def f(x): > ... x^2 >

[sage-devel] Feature request for sagetex

2009-11-17 Thread Nicolas M. Thiery
Hi Dan! I played with sagetex today. That's cool stuff :-) I have a feature request: an environment where I could use the same syntax as in usual doctests (without the sage results): \begin{sageexample} sage: 1 + 1 sage: def f(x): ... x^2 sage: f(3) \end