Hi, guys. >From Liviu's link, I see people have asked about this, but nobody shows a way that actually works :) I'm pretty close to making this work, but I have an erroneous error report after the job seems to be finished.
Here's my idea. Create a new document type "pdf6". Create a converter that goes from pdflatex -> pdf6. I think I need to use a converter because, unlike copier, the caller of the converter script has more variables available, especially $$p and $$r. In preferences add these \format "pdf6" "pdf" "pdf6" "" "" "" "document,menu=export" \converter "pdf2" "pdf6" "pjpdf.sh $$i $$r" "" and the script pjpdf.sh is: #!/bin/bash rsync -rv "$1" "$2" exec evince $1 exit 0 Open a document, run view -> other formats ->pdf6. Everything seems good. The pdf pops on the screen in Evince. And the pdf does copy into the document directory. In the terminal where LyX was launched: See the rsync output, you can tell it is copying the pdf into the correct document directory, which in this case is "/tmp" =============================== $ lyx jkljl.lyx This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) entering extended mode (./jkljl.tex LaTeX2e <2009/09/24> Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh yphenation, loaded. sending incremental file list jkljl.pdf sent 20457 bytes received 31 bytes 40976.00 bytes/sec total size is 20382 speedup is 0.99 ================================ Here are the problems. 1. LyX is "stuck" while Evince is open. I mean, even if you edit, lyx will not allow another view or update view action. LyX still thinks the converter is working. It will not allow the document to be viewed again. 2. Close the Evince viewer, and Lyx pops up an error message, "LyX: Cannot convert file An error occurred while running: pjpdf.sh "jkljl.pdf" "/tmp" " And in the terminal where LyX is running from, I see =============================== ../../../src/support/FileName.cpp(254): Could not move file /home/pauljohn/tmp/lyxtmp/lyx_tmpdir.XM8240/lyx_tmpbuf2/tmpfile.out to /home/pauljohn/tmp/lyxtmp/lyx_tmpdir.XM8240/lyx_tmpbuf2/jkljl.pdf Error: Cannot convert file ---------------------------------------- An error occurred while running: pjpdf.sh "jkljl.pdf" "/tmp/" ============================= So obviously, I don't know how to shut down a converter script. Can you help? -- Paul E. Johnson Professor, Political Science 1541 Lilac Lane, Room 504 University of Kansas