How about foo_sagetex.sage and foo_doctest.sage for consistency.
The new sagecommandline environment needs yet another auxiliary file
because it is based on the listings package and not verbatim. LaTeX
can feed input directly into verbatim macros, but not into listings
code. On the plus side, listings looks better than verbatim, having
the sage output saved into an auxiliary file is more flexible, and it
helps with debugging.
As for the environment names, right now there is:
1) sagesilent: executed in sage, nothing is typeset
2) sageblock: executed in sage, typeset sage commands as verbatim,
skip sage output
3) sageverbatim: not executed in sage, typeset as verbatim.
4) sageexample: doctest-like
5) sagecommandline: see the original email.
I think ideally they would all be combined into a single "sage"
environment, with options that determine whether to typeset the sage
command, the sage output, and whether to doctest. By default, it would
then behave like sagecommandline does now.
\begin{sage}[option]
sage: 1+1
2
\end{sage}
with one or more comma-separated option, say,
* noinput: do not typeset the "sage: 1+1"
* noprompt: do not typeset "sage:" but do typeset "1+1"
* nooutput: do not typeset the sage output
* text: typeset the output as text (listing environment)
* doctest: write sage command and output to foo_doctest.sage
The defaults could then be set globally by something like
\renewcommand{\sagedoctest}{True}
Best wishes,
Volker
--
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org