On 2/8/12 10:30 PM, Stephen Hartke wrote:
I've been writing a series of handouts for my class.  When writing them,
I like to initially use the Sage notebook as it allows me to quickly and
easily experiment with different examples, while still writing most of
the explanations.  However, for various reasons I'd like to be able to
post pdf versions or handout printed versions for my students.  Is it
possible to export a Sage notebook worksheet to SageTeX?  That would be
great!  The output from SageTeX I think looks better than printing from
a browser, and it is also allows more substantial LaTeX (and also easier
to write, since a TeX editor can be used) than jsMath does in the
comment boxes.

I could not immediately find a feature to export to SageTeX.  If such a
feature does not already exist, how hard would it be to implement it?

I don't think it exists, but shouldn't be that hard. Just get the text version of the worksheet (the "Edit" view) and:

Replace

{{{
INPUT
///
OUTPUT
}}}

with

\begin{sageblock}
INPUT
\end{sageblock}

(or use whatever sagetex environment you like)

I guess it would be a bit harder to convert the text cells' html to latex, but should be doable. But that would be about it, I think.

Thanks,

Jason

--
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

Reply via email to