LyX ⇒ PDF: There was an error opening this document
PDF: There was an error opening this document
I noticed a strange behavior. When I choose ctrl-R to compile the document and preview the PDF, I receive the message:
"There was an error opening this document. This file cannot be found."
However, when I repeatedly do ctrl-R, the document eventually compiles and the PDF is shown.
How can I fix this problem? I have seen the path in Tools/Preferences, but I am not sure if there is an option there to change.
When the PDF finally opens, I notice that it is in a temporary directory, ...Temp\nsz4A1C.tmp\doc.pdf. Wouldn't it had to be in the same directory of the doc.lyx file?
Thank you
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
PDF: There was an error opening this document
Feel free to change the path in the LyX Preferences to a suitable path to host that temporary directory.
A restart of LyX might be needed to activate such change.
I do not know why your system has problems in accessing that temporary directory. You always can copy that path and open that directory directly with your PDF application or a file explorer to access all the files created by LyX.
There might be a file permission problem. You will see once you try opening that path with a file explorer.
PDF: There was an error opening this document
What is strange is that I have to try several times ctrl-R to have the document compiled.