> On Wed, Mar 05, 2003 at 01:05:30PM -0300, Joao B. Oliveira wrote: > > > > > 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). > > The problem is the 'mv' at the end. > If you remove it, it should work correctly.
As far as I test it, it does *not* work, even removing the "mv". Two things are happening: 1) If I do not set a tmp directory in the Preferences, all intermediate files are generated in the current dir and are not erased at the end of the generation procedure. Of course, this produces rather messy results over time... :( 2) If a tmp directory was set up, the resulting Ps file is kept there AND erased thereafter. Take a look at the last lines of the debugging output: ********************************************* Calling psnup -2 'artigo.ps' 'tmpfile.out' Executing command:psnup -2 'artigo.ps' 'tmpfile.out' [1] [2] [3] [4] [5] [6] [7] Wrote 7 pages, 990733 bytes renaming file /tmp/lyx_tmpdir7509V42015/lyx_tmpbuf0/tmpfile.out to /tmp/lyx_tmpdir7509V42015/lyx_tmpbuf0/artigo.ps ** Up to here, everything is ok. ** Output file is properly renamed. Document exported as PSnup to file `~/projs/ProdCNPq/artigo1/artigo.ps' ** ^^^^^^^^ ** This seems to be a simple message, because the file artigo.ps was not moved ** to the ~/projs/ directory. It is still in /tmp/lyx_tmpdir7509V42015/. ** ** It will be erased by the last of the following commands: Running QuitLyX. Buffer::~Buffer() Deleting file: /tmp/lyx_tmpdir7509V42015/lyx_tmpbuf0/artigo.tex Deleting file: /tmp/lyx_tmpdir7509V42015/lyx_tmpbuf0/_home_profs_oliveira_projs_ProdCNPq_artigo1_f1.eps Deleting file: /tmp/lyx_tmpdir7509V42015/lyx_tmpbuf0/_home_profs_oliveira_projs_ProdCNPq_artigo1_f2.eps Deleting file: /tmp/lyx_tmpdir7509V42015/lyx_tmpbuf0/_home_profs_oliveira_projs_ProdCNPq_artigo1_f3.eps Deleting file: /tmp/lyx_tmpdir7509V42015/lyx_tmpbuf0/_home_profs_oliveira_projs_ProdCNPq_artigo1_z12.eps Deleting file: /tmp/lyx_tmpdir7509V42015/lyx_tmpbuf0/_home_profs_oliveira_projs_ProdCNPq_artigo1_z32.eps Deleting file: /tmp/lyx_tmpdir7509V42015/lyx_tmpbuf0/_home_profs_oliveira_projs_ProdCNPq_artigo1_z42.eps Deleting file: /tmp/lyx_tmpdir7509V42015/lyx_tmpbuf0/_home_profs_oliveira_projs_ProdCNPq_artigo1_z62.eps Deleting file: /tmp/lyx_tmpdir7509V42015/lyx_tmpbuf0/_home_profs_oliveira_projs_ProdCNPq_artigo1_z72.eps Deleting file: /tmp/lyx_tmpdir7509V42015/lyx_tmpbuf0/_home_profs_oliveira_projs_ProdCNPq_artigo1_z13.eps Deleting file: /tmp/lyx_tmpdir7509V42015/lyx_tmpbuf0/_home_profs_oliveira_projs_ProdCNPq_artigo1_z33.eps Deleting file: /tmp/lyx_tmpdir7509V42015/lyx_tmpbuf0/_home_profs_oliveira_projs_ProdCNPq_artigo1_z43.eps Deleting file: /tmp/lyx_tmpdir7509V42015/lyx_tmpbuf0/_home_profs_oliveira_projs_ProdCNPq_artigo1_z63.eps Deleting file: /tmp/lyx_tmpdir7509V42015/lyx_tmpbuf0/_home_profs_oliveira_projs_ProdCNPq_artigo1_z73.eps Deleting file: /tmp/lyx_tmpdir7509V42015/lyx_tmpbuf0/_home_profs_oliveira_projs_ProdCNPq_artigo1_f4.eps Deleting file: /tmp/lyx_tmpdir7509V42015/lyx_tmpbuf0/_home_profs_oliveira_projs_ProdCNPq_artigo1_w72.eps Deleting file: /tmp/lyx_tmpdir7509V42015/lyx_tmpbuf0/artigo.log Deleting file: /tmp/lyx_tmpdir7509V42015/lyx_tmpbuf0/artigo.aux Deleting file: /tmp/lyx_tmpdir7509V42015/lyx_tmpbuf0/artigo.dvi Deleting file: /tmp/lyx_tmpdir7509V42015/lyx_tmpbuf0/artigo.blg Deleting file: /tmp/lyx_tmpdir7509V42015/lyx_tmpbuf0/artigo.bbl Deleting file: /tmp/lyx_tmpdir7509V42015/lyx_tmpbuf0/artigo.tex.dep Deleting file: /tmp/lyx_tmpdir7509V42015/lyx_tmpbuf0/artigo.ps Deleting tmp dir /tmp/lyx_tmpdir7509V42015 All in all, Lyx is forgetting to move the resulting file from the tmp to the current directory... joao
