You might consider 
https://bitbucket.org/whuss/sws2tex/
which I have never used, but can't be worse than an ad hoc script. :-)

There is also
http://trac.sagemath.org/sage_trac/ticket/66
which looks a little more questionable, but perhaps better than starting from 
scratch.

-Ivan

On Feb 9, 2012, at 6:20 AM, Stephen Hartke wrote:

> On 2/8/12 10:30 PM, Stephen Hartke wrote:
> 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?
> 
> On Wed, Feb 8, 2012 at 10:37 PM, Jason Grout <[email protected]> 
> wrote:
> 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.
> 
> Jason,
> 
> Thanks for the suggestion!  I'd forgotten about getting the text version.  
> I'll try writing a script to replace input boxes as well replace the common 
> html with equivalent LaTeX (ie, replace "<em>.....</em>" with "\emph{....}"). 
>  If it seems useful, I'll share it once it's working.
> 
> Best wishes,
> Stephen
> 
> 
> -- 
> 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

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