Ticket #683 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

[with patch] bug in "latex?" in the notebook

Reported by: was Owned by: boothby
Priority: major Milestone: sage-2.8.12
Component: notebook Keywords:
Cc: Work issues:
Report Upstream: Reviewers:
Authors: Merged in:
Dependencies: Stopgaps:

Description

     --  The response to `latex?' seems to be out of date.

            %latex
            The equation y^2 = x^3 + x defines an elliptic curve.
            We have 2006 = SAGE{factor(2006)}.

    I thought it was a great credit to SAGE that when I edited the sample input
    in what seemed the obvious way, enclosing the math in $$ and changing SAGE
    to \sage, that it worked as expected.

Ah, you've found a bug. What happens is that all SAGE documentation is de-texed before displaying in the notebook (in plain text format). Unfortunately this detexing makes the documentation for latex appear completely wrong!

The solution is probably to come up with a notation to tell SAGE not to do the detexing.

Attachments

683-989-ncalexan-1.patch Download (2.8 KB) - added by ncalexan 6 years ago.

Change History

comment:1 Changed 6 years ago by was

  • Milestone changed from sage-2.9.1 to sage-2.8.12

Changed 6 years ago by ncalexan

comment:2 Changed 6 years ago by ncalexan

  • Summary changed from bug in "latex?" in the notebook to [with patch] bug in "latex?" in the notebook

683,989: add 'nodetex' directive to docstrings: doesn't strip (la)tex code from docstrings.

The first line of a docstring is parsed as a comma-separated list of directives (no whitespace in directives!). For example:

r"""nodetex,notyetimplemented
...
"""

If 'nodetex' is one of the directives, then no (la)tex code is stripped from the docstring. The model was the 'nodoctest' directive already found at the top of a file.

comment:3 Changed 6 years ago by mabshoff

  • Status changed from new to closed
  • Resolution set to fixed

applied to 2.8.12.rc0

Note: See TracTickets for help on using tickets.