Opened 11 years ago
Closed 11 years ago
#6211 closed defect (fixed)
[with patch, positive review] typesetting exp sometimes broken
Reported by: | burcin | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | sage-4.0.2 |
Component: | symbolics | Keywords: | |
Cc: | mhansen | Merged in: | 4.0.2.alpha0 |
Authors: | Burcin Erocal | Reviewers: | Nick Alexander |
Report Upstream: | Work issues: | ||
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description (last modified by )
Typesetting e.g. e^{sqrt(kappa) doesn't currently work. }
Attachments (1)
Change History (5)
comment:1 follow-up: ↓ 2 Changed 11 years ago by
comment:2 in reply to: ↑ 1 Changed 11 years ago by
Burcin: It seems the problem of sub-expression not getting typeset properly is specific to exp function. I could get it working by adding the _latex_composition method to class Function_exp (sage.functions.log) as
def _latex_composition(self, x): from sage.misc.latex import latex return "e^{%s}"%(latex(x))
Note: My sage copy has patch #5711 applied on it.
comment:3 Changed 11 years ago by
- Description modified (diff)
- Summary changed from typesetting symbolic integrals broken to typesetting exp sometimes broken
This was about typesetting integrals, but since a description of exp not typesetting properly was added to this and #5711 is now largely about the typesetting of integrals etc., it seemed wise to change the description and summary. The commentary above seems pretty useful!
Changed 11 years ago by
comment:4 Changed 11 years ago by
- Merged in set to 4.0.2.alpha0
- Resolution set to fixed
- Reviewers set to Nick Alexander
- Status changed from new to closed
- Summary changed from typesetting exp sometimes broken to [with patch, positive review] typesetting exp sometimes broken
Fine by me.
Latex typesetting of sub expressions also seem to be broken. This is probably caused by pynac not passing on the printing context when it calls the print function on the subexpression, though I haven't looked at any code yet.
Here is an example: