Mark Engelberg wrote:
I tried Angus' suggested work-around of setting the path to include
f:\Program Files\Adobe\Acrobat 7.0\Reader, and then just set the
viewer to acrord32.exe.

Interestingly, LyX IS able to load the path from the preferences file,
and the viewer of just acrord32.exe just fine.  It can remember the
viewer when it is acrord32.exe but not the longer full pathname, which
is certainly a bit baffling.

However, when I try to view the pdf with those settings, it IS able to
open the viewer, but cannot find the temp pdflatexed file to open. Argh! So, this combination of settings doesn't work, but for a
completely different reason.

Since we now know why the first approach failed, let's focus on getting this to work. I assume from your wording that Reader is *not* open prior to your clicking View->PDF (pdflatex) in LyX. (It's a known problem that an already open copy of Reader will report being unable to open the .pdf file in the temp directory, and there are various workarounds posted.) So clicking View->PDF (pdflatex) causes Reader to open, but it fails to find the file it's supposed to display.

First question: Does the output file exist? If so, can you open it by double-clicking it? I think I've had this happen when a compile problem actually caused pdflatex to fail to generate the output file. (I can't recall the precise circumstances.) I'm pretty sure it's also happened to me when pdflatex was able to process the .tex file but was blocked by the OS from writing the .pdf output (because a file of the same name already existed and had a lock on it), although that doesn't sound like your problem.

If the file exists, then there may be a problem with the path to it. One way to test that is as follows. Create the following two-line batch file (putting it in the directory where Reader lives would be a good idea).

echo Looking for input file %1
pause

Call it reader.bat, say. Then change the viewer entry from acrord32.exe to reader.bat and try View->PDF (pdflatex). This will show you the path to the .pdf output being fed to Reader.

Paul



Reply via email to