Summary: | LaTeX output doesn't work with Sage 5.12 | ||
---|---|---|---|
Product: | [Applications] cantor | Reporter: | Antonio Rojas <arojas> |
Component: | general | Assignee: | Alexander Rieder <alexanderrieder> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | karaytanto |
Priority: | NOR | ||
Version: | 0.4 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/cantor/c3626842a34bd324d271a54b05076840cbd6e616 | Version Fixed In: | 4.12 |
Sentry Crash Report: | |||
Attachments: | possible patch |
Description
Antonio Rojas
2013-11-07 07:52:07 UTC
i confim this bug Created attachment 83503 [details] possible patch thanks for the report. The above patch should fix the problem by switching to the %display command for newer sage versions. The current threshold for "old" is version 5.7 (as this was the last version before Bug 316299). Does anyone now/can anyone check if this method works with all versions >5.7 or if i need to introduce a finer grading of versions than just old/new? I will commit this patch in the next couple of days once I've done some more serious testing. Git commit c3626842a34bd324d271a54b05076840cbd6e616 by Alexander Rieder. Committed on 24/11/2013 at 20:22. Pushed by arieder into branch 'KDE/4.12'. fix typesetting for newer sage versions Since version 4.12 sage doesn't support the command sage.misc.latex.pretty_print_default anymore. Instead we use the %display ipython magic. In order to keep the code clean the specific commands have moved to a dedicated python function "__cantor_enable_typesetting(enable)" that gets declared on init and called by the backend when needed. This patch also introduces a finer handling of version numbers instead of just having a simple "legacy mode". Tested with Sage versions 5.10 (old commands) and 5.12 (new command) FIXED-IN: 4.12 M +3 -3 src/backends/sage/sagecompletionobject.cpp M +90 -29 src/backends/sage/sagesession.cpp M +24 -2 src/backends/sage/sagesession.h http://commits.kde.org/cantor/c3626842a34bd324d271a54b05076840cbd6e616 Git commit 9ae291155b5cc2bcb21ead0452092de57f81a9a9 by Alexander Rieder. Committed on 24/11/2013 at 20:22. Pushed by arieder into branch 'master'. fix typesetting for newer sage versions Since version 4.12 sage doesn't support the command sage.misc.latex.pretty_print_default anymore. Instead we use the %display ipython magic. In order to keep the code clean the specific commands have moved to a dedicated python function "__cantor_enable_typesetting(enable)" that gets declared on init and called by the backend when needed. This patch also introduces a finer handling of version numbers instead of just having a simple "legacy mode". Tested with Sage versions 5.10 (old commands) and 5.12 (new command) FIXED-IN: 4.12 (cherry picked from commit c3626842a34bd324d271a54b05076840cbd6e616) M +3 -3 src/backends/sage/sagecompletionobject.cpp M +90 -29 src/backends/sage/sagesession.cpp M +24 -2 src/backends/sage/sagesession.h http://commits.kde.org/cantor/9ae291155b5cc2bcb21ead0452092de57f81a9a9 |