#10637: Implement sage -sws2rst
------------------------------------------------------------+---------------
Reporter: nthiery | Owner:
jason, mpatel, was
Type: enhancement | Status:
needs_review
Priority: major | Milestone:
sage-5.7
Component: notebook | Resolution:
Keywords: ReST, worksheet | Work issues:
answer questions, math formatting, lists, maybe absolute paths?
Report Upstream: Workaround found; Bug reported upstream. | Reviewers:
Nicolas Thiéry, Jason Grout, Karl-Dieter Crisman, Jason Bandlow, John Palmieri
Authors: Pablo Angulo, Karl-Dieter Crisman | Merged in:
Dependencies: #11080, #11459 | Stopgaps:
------------------------------------------------------------+---------------
Comment (by SimonKing):
Since the resulting .rst file is supposed to end up in the thematic
tutorials anyway, I tried it, and it seems to work more or less. Some
details are not as they were intended.
* The original worksheet contained an address in some html block. It came
out verbously, i.e., in the html page, I see
{{{
<address style=”text-align: right;”><span style=”font-size: small;”>Simon
King</span></address> <address style=”text-align: right;”><span style
=”font-size: small;”>Friedrich-Schiller-Universität Jena</span></address>
<address style=”text-align: right;”><span style=”font-size:
small;”>E-mail: simon dot king at uni hyphen jena dot de</span></address>
<address style=”text-align: right;”><span style=”font-size: small;”>©
2011</span></address> <address><br /></address>
}}}
* Is there the possibility to insert Sage-specific links, such as
{{{:class:`sage.structure.parent.Parent`}}}? I think adding this would be
a nice feature.
* Indentation does not work. See below.
* In my worksheet, I have:
'''methods ''for all objects of a category''''', and '''''for all
elements''' of such objects''.
This became
'''methods *for all objects''' of a category*, and '''*for all
elements''' of such objects*
* Headers of level 5 are not recognised. Hence, `<h5 style=”padding-left:
30px;”><span style=”font-size: large;”>1. A coercion is a map, a
conversion may be a <em>partial</em> map</span></h5>` is printed
verbously.
Concerning indentation:
In my worksheet, I have something in a html field that looks like this:
'''__Outline__'''
'''Use existing base classes'''
There are sub-classes of sage.structure.parent.Parent resp. of
sage.structure.element.Element that will help you a lot. Inheriting from
these classes is essential for using Sage's coercion system.
Arithmetic operations should be implemented by single underscore
methods, such as _add_, _mul_.
The outcome then looks like
'''Outline'''
'''Use existing base classes'''
There are sub-classes of sage.structure.parent.Parent resp. of
sage.structure.element.Element that will help you a lot. Inheriting from
these classes is essential for using Sage's coercion system.
Arithmetic operations should be implemented by single underscore methods,
such as _add_, _mul_.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10637#comment:114>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.