#6618: Follow up on #6591: make tightpage work even in the notebook
---------------------------------------------------+------------------------
Reporter: nthiery | Owner: nthiery
Type: defect | Status:
needs_review
Priority: major | Milestone: sage-5.3
Component: interfaces | Resolution:
Keywords: view, pdflatex, tightpage, tikz | Work issues:
Report Upstream: N/A | Reviewers: John
Palmieri?
Authors: Nicolas M. ThiƩry | Merged in:
Dependencies: | Stopgaps:
---------------------------------------------------+------------------------
Comment (by jhpalmieri):
On my OS X machine, running doctests opens up an external viewer for PDF
files. Also, doctests fail because I don't have dot2tex installed (this is
easy to fix). For the external viewer issue, maybe we should just rip out
these doctests:
{{{
#!diff
diff --git a/sage/misc/latex.py b/sage/misc/latex.py
--- a/sage/misc/latex.py
+++ b/sage/misc/latex.py
@@ -2048,17 +2048,6 @@ def view(objects, title='SAGE', debug=Fa
<html><span class="math">\newcommand{\Bold}[1]{\mathbf{#1}}x
2</span></html>
sage: sage.misc.latex.EMBEDDED_MODE = False
- sage: CB = CrystalOfLetters(['B',5])
- sage: view(CB, tightpage = True, viewer = "pdf")
-
- sage: CB = CrystalOfLetters(['B',5])
- sage: view(CB, tightpage = True, pdflatex = True)
-
- sage: g = sage.categories.category.category_graph() # long time
- sage: g.set_latex_options(format = "dot2tex") # long time
- sage: view(g, tightpage=True, pdflatex = True) # long time
-
-
TESTS::
sage: from sage.misc.latex import _run_latex_, _latex_file_
}}}
Other suggestions?
I also still some cropping issues in the notebook, say with this code:
{{{
g = graphs.BidiakisCube()
latex.add_to_jsmath_avoid_list('tikz')
view(g, tightpage=True)
}}}
But maybe that's not a big deal.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6618#comment:9>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.