Ticket #8084 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

fix "show" in the notebook for strings

Reported by: jhpalmieri Owned by: tbd
Priority: minor Milestone: sage-4.3.2
Component: misc Keywords: latex, jsmath
Cc: Work issues:
Report Upstream: N/A Reviewers: Robert Mařík
Authors: John Palmieri Merged in: sage-4.3.2.alpha1
Dependencies: Stopgaps:

Description

From  this thread in sage-devel:

when doing in notebook 
sage: show('x^2') 
or 
sage: show(type(factor)) 
I get error Unknown control sequence '\texttt' 

There are other problems, too; for example, from the command line (not the notebook),

sage: view(type(factor))
sage: view(identity_matrix)

produce odd-looking output -- see the attached pngs. (The old versions are before the patch, the new ones afterwards. If you wanted output like the old version of view(identity_matrix), it's probably better to do browse_sage_doc(identity_matrix) instead.)

The attached patch should fix these problems.

Attachments

trac_8084-show.patch Download (2.9 KB) - added by jhpalmieri 3 years ago.
factor_old.png Download (27.8 KB) - added by jhpalmieri 3 years ago.
output of view(type(factor)) before the patch
factor_new.png Download (4.2 KB) - added by jhpalmieri 3 years ago.
output of view(type(factor)) after the patch

Change History

Changed 3 years ago by jhpalmieri

Changed 3 years ago by jhpalmieri

output of view(type(factor)) before the patch

Changed 3 years ago by jhpalmieri

output of view(type(factor)) after the patch

comment:1 Changed 3 years ago by jhpalmieri

  • Status changed from new to needs_review

comment:2 Changed 3 years ago by robert.marik

  • Keywords latex, jsmath added
  • Reviewers set to Robert Mařík
  • Status changed from needs_review to positive_review

Works for me and fixes the problem in Sage 4.3.1. Tests passed. Thanks for the patch.

comment:3 Changed 3 years ago by mvngu

  • Status changed from positive_review to closed
  • Resolution set to fixed
  • Merged in set to sage-4.3.2.alpha1
Note: See TracTickets for help on using tickets.