LyXProblem previewing pdf in LyX

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
franckess
Posts: 7
Joined: Sun Apr 08, 2012 12:49 pm

Problem previewing pdf in LyX

Post by franckess »

Hi People

I was using LyX fine until I woke up this morning with this problem in hand. When I click on view doc in pdf, I see the following box-message:
--> sweave Errors
Errors: pdfTeX Error
Description: !pdfTeX error: pdflatex (file C:/Documents and Settings/Administrator/Local Set
I can't figure out what's wrong. Please help!!!! :?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10328
Joined: Mon Mar 10, 2008 9:44 pm

Re: Problem previewing pdf in LyX

Post by Stefan Kottwitz »

Hi,

welcome to the board!

The error message is incomplete. The best would be if you would post your .log file here, as attachment. For this, just click "Upload attachment" below the edit text field.

Stefan
LaTeX.org admin
franckess
Posts: 7
Joined: Sun Apr 08, 2012 12:49 pm

Re: Problem previewing pdf in LyX

Post by franckess »

Please find attached the log file saved as .txt
Attachments
LyX_Error.txt
(17.15 KiB) Downloaded 302 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10328
Joined: Mon Mar 10, 2008 9:44 pm

Problem previewing pdf in LyX

Post by Stefan Kottwitz »

The complete error message is

Code: Select all

!pdfTeX error: pdflatex (file C:/Documents and Settings/Administrator/Local Set
tings/Temp/lyx_tmpdir.Hp5828/lyx_tmpbuf2/R-assignment-bootmle.pdf): PDF inclusi
on: required page does not exist <0>
 ==> Fatal error occurred, no output PDF file produced!
It seems your document tries to include a file R-assignment-bootmle.pdf, but this file doesn't exist. Perhaps there's a typo in the filename?

Stefan
LaTeX.org admin
franckess
Posts: 7
Joined: Sun Apr 08, 2012 12:49 pm

Re: Problem previewing pdf in LyX

Post by franckess »

I never created a R-assignment-bootmle.pdf document, the one that I have always been running is R-assignment.pdf
I really don't know where the bootmle one comes from!!!!
franckess
Posts: 7
Joined: Sun Apr 08, 2012 12:49 pm

Problem previewing pdf in LyX

Post by franckess »

Just the time to switch off my laptop and switch it on, I get a typo...that doesn't make sense!!!
Isn't there a place where I can change that path to something else?

Thanks for your help, I really appreciate it :D
User avatar
Stefan Kottwitz
Site Admin
Posts: 10328
Joined: Mon Mar 10, 2008 9:44 pm

Re: Problem previewing pdf in LyX

Post by Stefan Kottwitz »

Yes, there must be a cause. That you switched your laptop off and on, is just a coincidence, you probably have done something which you did not notice or remember.

Perhaps post your preamble, or your (reduced) LyX file, or a LaTeX export of a reduced copy of your file. Until now there's not enough information yet to find the cause.

Stefan
LaTeX.org admin
franckess
Posts: 7
Joined: Sun Apr 08, 2012 12:49 pm

Re: Problem previewing pdf in LyX

Post by franckess »

Please find attached the *.lyx file and *.pdf file (the one before the error)
Attachments
R-assignment.pdf
(151.98 KiB) Downloaded 177 times
R-assignment.lyx
(19.61 KiB) Downloaded 248 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10328
Joined: Mon Mar 10, 2008 9:44 pm

Problem previewing pdf in LyX

Post by Stefan Kottwitz »

Have a look at this excerpt from the LyX file, lines 213-215:

Code: Select all

\begin_layout Chunk
<<bootmle, fig=TRUE>>=
\end_layout
Perhaps that's it.

Stefan
LaTeX.org admin
franckess
Posts: 7
Joined: Sun Apr 08, 2012 12:49 pm

Problem previewing pdf in LyX

Post by franckess »

I have changed that line as you indicated, but now it gives me this error:

Code: Select all

!pdfTeX error: pdflatex (file C:/Documents and Settings/Administrator/Local Set
tings/Temp/lyx_tmpdir.Hp5828/lyx_tmpbuf2/R-assignment-004.pdf): PDF inclusion: required page does not exist <0>
 ==> Fatal error occurred, no output PDF file produced!
Post Reply