On Sun, Feb 21, 2010 at 10:17 PM, Pavel Sanda <[email protected]> wrote:
> Lavaud Michel wrote:
>> I suggested to replace it with (View > Pdf  (pdflatex)) +
>> (File > Export > Pdf (pdflatex) ),
>
> no, you are trying to workaround foxit bug by tweaking lyx in an unnatural 
> way.
> the correct way is to ask foxit devs why your pdf is not saved as-is or why it
> cant be read by acrobat.

Well, I'd find the above suggestion more convenient that having to
manually save the file, and navigate via the GUI to the desired
directory, even though I don't have that bug.

Anyway, natural or not this can be done by adding a script like the
following to your path:

--- ~/bin/ViewAndCopy.sh ---
mkdir -p ~/cached_pdfs
cp "$2" ~/cached_pdfs
"$@"

Windows doesn't understand .sh files by default so you may want to
write a .bat (batch) or .py (python) files instead. You could also
install bash on Windows so you could use the above .sh file. In any
case you then need to change
    Tools->Preferences->File Handing->File Formats->Format: PDF
(pdflatex)->Viewer
To something like
    ViewAndCopy.sh foxit

Then whenever you view a pdf it will be copied to the ~/cached_pdfs directory.

-- 
John C. McCabe-Dansted

Reply via email to