#6618: Follow up on #6591: make tightpage work even in the notebook
----------------------------+-----------------------------------------------
Reporter: nthiery | Owner: nthiery
Type: defect | Status: new
Priority: major | Milestone: sage-4.1.1
Component: interfaces | Keywords: view, pdflatex, tightpage, tikz
Reviewer: John Palmieri? | Author: Nicolas M. ThiƩry
Merged: |
----------------------------+-----------------------------------------------
Comment(by nthiery):
Replying to [comment:1 jhpalmieri]:
> Can you clarify what you want to do here? The pictures produced by
"view" in the notebook already look cropped to me. Try this example:
> {{{
> from sage.misc.latex import latex_examples
> latex.add_to_preamble("\\usepackage{tkz-graph}")
> latex.add_to_jsmath_avoid_list("tikzpicture")
> view(latex_examples.graph())
> }}}
The point is that tightpage crops if the picture is small, but also does
*not* crop to the page size if the picture is big.
In other words, it really sets the page size to be the size of the
picture.
I have a apparently working patch. I still need to test it further and
document it this time :-)
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6618#comment:2>
Sage <http://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
-~----------~----~----~----~------~----~------~--~---