#8105: LaTex to Sage worksheet conversion system
------------------------------------+---------------------------------------
Reporter: rbeezer | Owner: tbd
Type: enhancement | Status: new
Priority: minor | Milestone: sage-feature
Component: experimental package | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
------------------------------------+---------------------------------------
Comment(by rbeezer):
Code like the following, added to the Python script, will automate the
cut/paste final step, producing a Sage worksheet as the final output.
(Ignore the line outputting W's cells.)
Note that the {{{.edit_save()}}} method needs a title as the first line of
the string, and this clobbers the title given in the initialization.
{{{
sage: nb = sage.server.notebook.notebook.Notebook("/tmp")
sage: W = nb.create_new_worksheet('A Weird Worksheet', 'admin')
sage: W.edit_save('Weirder Title\n{{{2+3\n///\n5\n}}}')
sage: W
[Cell 0; in=2+3, out=
5]
sage: nb.export_worksheet(W.filename(), "/tmp/weird.sws", verbose=False)
sage: nb.delete()
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8105#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
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-trac?hl=en.