#6012: [with patch, needs review] allow use of pdflatex instead of latex
-------------------------+--------------------------------------------------
 Reporter:  jhpalmieri   |       Owner:  jhpalmieri
     Type:  enhancement  |      Status:  new       
 Priority:  major        |   Milestone:  sage-4.0  
Component:  misc         |    Keywords:            
-------------------------+--------------------------------------------------

Comment(by rbeezer):

 Replying to [comment:3 jhpalmieri]:
 > This isn't because of this patch, is it?  I can't get these graphs to
 appear using a %latex cell with or without the patch -- I can only use
 %pdflatex with the patch.

 It's not the patch's fault.  It's dvipng failing no matter what on the dvi
 created by tkz-graph.  Somewhere I got the impression  tkz-graph  played
 fast and loose with \special's or something like that, which is why I
 previously thought pdflatex was *required*.  But I'm not sure I understand
 the exact nature of the problem here, so I shouldn't throw stones.

 > Can you temporarily move dvipng out of your path and see what Sage does
 then?  (If it can't find dvipng, then it should use dvips and convert.)
 That works for me.  I don't know what the problem with dvipng is.  Is it
 worth trying to see (in Latex()) if dvipng gives error messages and if so,
 switching to the latex -> dvi -> ps -> png conversion?

 {{{have_dvipng()}}} caches its result.  :-(  That cost me 5 minutes.  ;-)
 But, yes, that works - renamed dvipng temporarily, loaded up the preamble
 in one cell, used {{{%latex_debug}}} in a second cell, followed with the
 Altermundus graph in the screenshot,  Great-looking PNG in the notebook
 results.

 dvipng has a {{{--picky}}} switch which is designed for just this (I
 think, \specials etc).  It results in no output on warnings - I just
 tested it.  Guess you could then test for the presence of output (are
 filenames unique across runs?) or perhaps test for newer output with the
 right name.  Or maybe there is something easier.

 I got {{{view()}}} tested in the notebook, which was a bit of a hack to
 get the right string in.  Let me know how you want to proceed and I'm
 ready to give this a positive review.  I'll be in/out the rest of the
 afternoon before a 6 PM engagement and have IRC on.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6012#comment:4>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel

--~--~---------~--~----~------------~-------~--~----~
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