Ticket #8084 (closed defect: fixed)
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
Change History
Changed 3 years ago by jhpalmieri
-
attachment
factor_old.png
added
output of view(type(factor)) before the patch
Changed 3 years ago by jhpalmieri
-
attachment
factor_new.png
added
output of view(type(factor)) after the patch
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
Merged trac_8084-show.patch.
