Jianwei Huang wrote:
Dear All:
I have Lyx 1.3.3 installed on Windows XP. I changed the viewer of pdf to "Acrobat", which is the .exe name of my Adobe Acrobat 5.0. When I tried to see the pdf by using View->pdf (or pdflatex), the acrobat started normally but with the following message:
"There was an error opening this document. The file does not exist."
This can happen for at least a couple of reasons. One, of course, is that LyX in fact failed to generate the PDF file. To check this, repeat the process to the point where you get this error message, then look in your temp directory (Edit->Preferences->Paths->Use temp directory). There should be a folder with a long name (lyx_tmpdir...), containing a subfolder, containing (hopefully) assorted files relating to your document, including the PDF file (if it was produced). If you find it there, the problem likely lies outside LyX.
The other way to encounter this message is to attempt View->PDF when Acrobat is already open. In that case, LyX will actually generate the PDF file (in the temp directory), but Acrobat will be unable to open it at LyX's command. This is a Windows-only phenomenon. If it occurs, you can use the Acrobat File->Open menu to navigate to LyX's temp directory and load the PDF manually. It's probably more convenient, though, to make sure that Acrobat is closed before using View->PDF.
Then I tried to export->PDF, nothing shows up. No pdf
generated in my working directory.
Check Edit->Preferences->Converters. To use View->PDF, you need a chain of conversions defined that gets you from LaTeX to PDF. On my machine, the chain is LaTeX->DVI, DVI->Postscript, Postscript->PDF and the converters are latex $$i, dvips -o $$o $$i, and ps2pdf13 $$i respectively. I'm pretty sure you have a chain defined; otherwise PDF should not appear as an option in the View menu. If this is the chain you are using, pay particularly close attention to the last step. I'm not positive, but I seem to recall that when LyX installed it used a different command line (don't recall exactly what) that did not work under Windows. I think the CompatibilityLevel switch is the culprit, but I won't swear to it.
I guess it is the directory problem.
I don't think so; more likely it's the command line for the Postscript->PDF conversion step.
Incidentally, have you tried View->PDF (dvipdfm) or View->PDF (pdflatex)? If either of those works, it raises the likelihood that the problem is with the Postscript->PDF converter.
-- Paul
But how can I set
so that the pdf is generated in the current directory (with the lyx file)?
Anyone can help me with this?
Thanks a lot!
Yours Jianwei
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
--
******************************************************************************************
Paul A. Rubin Phone: (517) 432-3509
Department of Management Fax: (517) 432-1111
The Eli Broad Graduate School of Management E-mail: [EMAIL PROTECTED]
Michigan State University http://www.msu.edu/~rubin/
East Lansing, MI 48824-1122 (USA)
******************************************************************************************
Mathematicians are like Frenchmen: whenever you say something to them,
they translate it into their own language, and at once it is something
entirely different. J. W. v. GOETHE