Changes between Version 2 and Version 6 of Ticket #13713


Ignore:
Timestamp:
11/16/12 01:23:21 (6 years ago)
Author:
slabbe
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13713

    • Property Summary changed from view generates a LaTex (memory?) error on a graph of size 24 to view generates a LaTex error on a graph of size 24
  • Ticket #13713 – Description

    v2 v6  
    4141}}}
    4242
    43 I know a workaround which is to [http://www.liafa.univ-paris-diderot.fr/~labbe/blogue/2012/11/using-sage-graphviz-dot2tex-tikz-tikz2pdf-to-draw-a-graph use the tikz2pdf script] which compiles fine. But, it would be nice if view could compile G as well.
     43It turns out that the following works:
     44
     45{{{
     46sage: G.set_latex_options(format='dot2tex', prog='dot')
     47sage: view(G, engine='pdflatex')
     48sage: G.set_latex_options(format='dot2tex', prog='circo')
     49sage: view(G, engine='pdflatex')
     50}}}
     51
     52The default compilation is trying (tex -> dvi -> png, dvi -> ps -> pdf) and the useless (dvi -> png) conversion is broken because of overfull vbox and overfull hbox created in the first tex -> dvi compilation.
     53
     54The following does the trick:
     55
     56{{{
     57sage: view(G, engine='pdflatex', tightpage=True)
     58}}}