On Sun, Oct 30, 2011 at 05:55:34PM +0100, Tommaso Cucinotta wrote: > Il 30/10/2011 16:16, Enrico Forestieri ha scritto: > >If a converter contains the construct "2>/dev/null", this is parsed > >incorrectly. If our converter is > > > >"gracebat -hardcopy -printfile $$o -hdevice EPS $$i 2>/dev/null" > [...] > > I've got this point, but still I cannot understand why it works > flawlessly on my laptop whilst Philip Pirrip reported a problem in > the first place.
I don't have a crystal ball, so I don't know why, too :) LyX actually follows the agr->eps->pdf route to produce a pdf. However, it fails generating a correct pdf on windows because the epstopdf command (which comes with miktex) fails with the eps generated by grace. I tested it with the epstopdf command distributed with texlive and it works flawlessly both on windows and linux. > The real issue is probably that he's trying to customize the > conversion command (sequencing the 2 commands by ";"), instead of > using the default converters LyX already provides in its > configuration ?. I don't have access to his configuration files, so I cannot know. > In my lyxrc.default I have > > \converter agr eps "gracebat -hardcopy -printfile $$o > -hdevice EPS $$i 2>/dev/null" "" > \converter agr png "gracebat -hardcopy -printfile $$o > -hdevice PNG $$i 2>/dev/null" "" > \converter agr jpg "gracebat -hardcopy -printfile $$o > -hdevice JPEG $$i 2>/dev/null" "" > \converter agr ppm "gracebat -hardcopy -printfile $$o > -hdevice PNM $$i 2>/dev/null" "" > > they all contain this "2> /dev/null" sequence, but as I said this is > just working fine, AFAICS. Only because gracebat can take more input files and doesn't stop when one of them does not exist. -- Enrico