> under the previous version of LyX I had a owner-defined converter
> that could convert from PS to PSnup, defined as follows:
> 
> \format "psnup" "ps" "PSnup" ""
> \viewer "psnup" "gv -landscape -scale 1"
> \converter "ps" "psnup" "psnup -2 $$i $$o ; mv -f $$o $$i" ""
> 
> Under LyX 1.3.0 this conversion command does get executed, but an
> error message is given thereafter and no viewer is applied (for
> exporting, no .ps file is generated as well).
> 
> Does anyone know if the command syntax has been changed, or if
> there is an error in the above command? (It worked before!!)
> 

I have found little more detail:

If a tmp directory is *not* defined in the preferences, the
above command works properly but also generates all (aux,dvi,log,
...) files in the current directory, and that was not good.

If a tmp directory IS defined in the preferences, then all work
is done there but the resulting file is NOT moved properly to the
original directory. BTW, it works for the usual (dvi,ps) files,
but for a user-provided conversion it seems not to be the case.

Some output from -dbg any:

Converting from  dvi to ps
Calling dvips -t a4 -o 't1.ps' 't1.dvi'
Executing command:dvips -t a4 -o 't1.ps' 't1.dvi'
This is dvips(k) 5.86e Copyright 2001 Radical Eye Software
(www.radicaleye.com)
' TeX output 2003.03.05:1259' -> t1.ps
<texc.pro>. [1] 
Converting from  ps to psnup
Calling psnup -2 't1.ps' 'tmpfile.out'
Executing command:psnup -2 't1.ps' 'tmpfile.out'
[1] Wrote 1 pages, 56099 bytes
renaming file /tmp/lyx_tmpdir21685Wewzb/lyx_tmpbuf0/tmpfile.out
           to /tmp/lyx_tmpdir21685Wewzb/lyx_tmpbuf0/t1.ps
Document exported as PSnup to file `~/didat/algoIII/trabZN20031/t1.ps'

As you see in the last three lines, LyX makes the wrong renaming...

joao b. oliveira


Reply via email to