#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-4.3.3                     
  Component:  interfaces         |    Keywords:  view, pdflatex, tightpage, tikz
     Author:  Nicolas M. ThiƩry  |    Upstream:  N/A                            
   Reviewer:  John Palmieri?     |      Merged:                                 
Work_issues:                     |  
---------------------------------+------------------------------------------

Comment(by jhpalmieri):

 I think that tightpage should impose pdflatex = True, because producing
 badly cropped images is bad.  One other comment (for now -- I may have
 more later): in line 1264
 {{{
 #!diff
         1261        if tightpage:
         1262            title = ''
         1263            extra_preamble +=
 '\\usepackage[tightpage,active]{preview}\\PreviewEnvironment{page}'
         1264            math_left  = '\\begin{page}$\displaystyle'
         1265            math_right = '$\\end{page}'
 }}}
 add a space after "displaystyle".  On my computer:
 {{{
 sage: CB = CrystalOfLetters(['B',2])
 sage: latex(CB)
 dot2tex not available.  Install after running 'sage -sh'
 dot2tex not available.  Install after running 'sage -sh'
 None
 }}}
 Since {{{latex(CB)}}} returns {{{None}}}, then when I try
 {{{
 sage: view(CB, tightpage = True)
 }}}
 it forms a latex document containing
 {{{
 \begin{page}$\displaystyleNone$\end{page}
 }}}
 This leads to an error.  A space after "displaystyle" would fix this.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6618#comment:6>
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.

Reply via email to