LyXLyX PdfTex Error

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
AnotherHickey
Posts: 5
Joined: Fri May 03, 2013 10:40 pm

LyX PdfTex Error

Post by AnotherHickey »

I am getting the following error message when trying to compile a simple file to pdf:

PdfTex Error

!pdfTex error: off latex (file ecrm1000): bad ok file, expected pre

Any ideas?

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

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

LyX PdfTex Error

Post by cgnieder »

Hi AnotherHickey,

Welcome to the LaTeX community!

I can't say much other than this is related to fonts. The file ecrm1000 seems to be a bitmap font file (that's what a quick web search suggests to me). Maybe you can (a) attach a small sample file that produces this error to your next post and (b) tell us what TeX system you've got installed and how you're trying to produce the PDF.

Regards
site moderator & package author
AnotherHickey
Posts: 5
Joined: Fri May 03, 2013 10:40 pm

Re: LyX PdfTex Error

Post by AnotherHickey »

Thanks for the reply. I have the software setup on a computer at work, so I don't have access to it until Monday. I am not doing anything special with the program. Just typing one word on the screen and then clicking on the double eyeball to create the PDF. The MikTex that comes with the bundle install is also installed on the computer.

Obviously I don't know much about the software, but I have to get it running for a lab and don't know how to get rid of the error. I have uninstalled both the MikTex and LyX and reinstalled, but still get the error. I installed it on one computer and don't get the error, so I am not sure why this machine is getting the error.
AnotherHickey
Posts: 5
Joined: Fri May 03, 2013 10:40 pm

Re: LyX PdfTex Error

Post by AnotherHickey »

Good news, I got it installed. I uninstalled, removed all temp files, installed under a different account which still failed, removed the software again, then installed it again under Administrator and it works on all the accounts now.

On to my next issue though. I always get this error when closing LyX.
Attachments
LyX.JPG
LyX.JPG (23.8 KiB) Viewed 8751 times
scottkosty
Site Moderator
Posts: 542
Joined: Sat Sep 01, 2012 6:38 am

Re: LyX PdfTex Error

Post by scottkosty »

That's strange. Windows is tricky stuff!

You could try using a different path for temporary files: go to Tools > Paths > and under "Temporary directory" choose a folder where you have write and delete permissions.

Does that work?
AnotherHickey
Posts: 5
Joined: Fri May 03, 2013 10:40 pm

Re: LyX PdfTex Error

Post by AnotherHickey »

I created a folder on the C drive called Temp and then changed the path to it, but still get the error message. The account that I am using has Administrator rights to the machine. Any other ideas?
AnotherHickey
Posts: 5
Joined: Fri May 03, 2013 10:40 pm

Re: LyX PdfTex Error

Post by AnotherHickey »

OK, I may or may not have solved it. If I open the program, create a new document and then click the double eyeballs and open it with Adobe Reader and then close the program, it will get the error. If I specifically save the document that I am working in and then exit the program, it does not give the error.
scottkosty
Site Moderator
Posts: 542
Joined: Sat Sep 01, 2012 6:38 am

LyX PdfTex Error

Post by scottkosty »

AnotherHickey wrote:OK, I may or may not have solved it. If I open the program, create a new document and then click the double eyeballs and open it with Adobe Reader and then close the program, it will get the error. If I specifically save the document that I am working in and then exit the program, it does not give the error.
Thanks for the info. I wouldn't be surprised if the problem is coming from Adobe Reader (it does not play friendly with other software. There are several issues with it thinking it's the only software allowed to create and read PDFs). Have you tried a different PDF reader? I've heard good things about Sumatra PDF reader. It is free and open source.
Chris_P
Posts: 3
Joined: Wed May 08, 2013 6:50 am

LyX PdfTex Error

Post by Chris_P »

scottkosty wrote:
AnotherHickey wrote:OK, I may or may not have solved it. If I open the program, create a new document and then click the double eyeballs and open it with Adobe Reader and then close the program, it will get the error. If I specifically save the document that I am working in and then exit the program, it does not give the error.
Thanks for the info. I wouldn't be surprised if the problem is coming from Adobe Reader (it does not play friendly with other software. There are several issues with it thinking it's the only software allowed to create and read PDFs). Have you tried a different PDF reader? I've heard good things about Sumatra PDF reader. It is free and open source.
Another vote for either Sumatra PDF reader or PDF-XChange (I use the latter these days on my Windows box, but use Sumatra PDF on my work laptop.)
Post Reply