LyXPDF File Creation

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
viper1209
Posts: 2
Joined: Sun Apr 21, 2013 3:48 pm

PDF File Creation

Post by viper1209 »

I've reinstalled my PC (and obviously LyX) and now I have problems using LyX. Every time i open some one of my LyX files (*.lyx) I get the following error:
Changes will not be highlighted in LaTeX output when using pdflatex, because xcolor and ulem are not installed. Please install both packages or redefine \lyxadded and \lyxdeleted in the LaTeX preamble.
I went to the MiKTeX package manager, installed them and clicked "Refresh FNDB" in MiKTeX Settings but the error occured again while opening a file. Also I'm not able to create a PDF file. I get the following errors while exporting.

PDF (LuaTeX):

Code: Select all

LaTeX Error: File `etex.sty' not found.
   \RequirePackage{etex}[1998/03/26]
                                        
*** (cannot \read from terminal in nonstop modes)
(i couldn't find any package called etex in package manager)

PDF (XeTeX): & PDF (pdfLaTeX):
creates pdf but 'ß' is replaced by 'SS'

PDF (dvipdfm): & PDF (ps2pdf):

Code: Select all

LaTeX Error: File `HS_Logo' not found.
 \end{document}
                    
I could not locate the file with any of these extensions:
.eps,.ps,.eps.gz,.ps.gz,.eps.Z
Try typing  <return>  to proceed.
If that doesn't work, type  X <return>  to quit.
(the file exists)

When I click on "view" in LyX to create a preview of my PDF everything works fine so I copied the previewed PDF from my temporary folder but I don't want to do this every time.
Is there anyone out there who knows how to solve this?
(btw: I tried to reinstall LyX and MiKTeX several times, I also tried an older LyX version)

I'm working with LyX 2.0.5 on Windows XP.

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

scottkosty
Site Moderator
Posts: 542
Joined: Sat Sep 01, 2012 6:38 am

Re: PDF File Creation

Post by scottkosty »

I can't help much with this problem (I'm on Ubuntu), but you could try Tools > Reconfigure. You should do this after you install any new package. Restart LyX and try again.
viper1209
Posts: 2
Joined: Sun Apr 21, 2013 3:48 pm

Re: PDF File Creation

Post by viper1209 »

Thanks. The error about xcolor and ulem doesn't appear any longer but the errors while exporting a pdf file are still the same.
mlandoni
Posts: 1
Joined: Tue Jul 09, 2013 6:03 pm

Re: PDF File Creation

Post by mlandoni »

Something that worked for me (Windows 8, miktex 2.9) was:

* Open miktex package manager
* Uninstall "miktex-etex-base"
* Reinstall "miktex-etex-base-2.9"

It seems that there are two versions of xetex available, and each one has its own etex, but LyX's default miktex installation installs the new xetex with the old etex and they don't work together. If this sounds like an excerpt from Alice in Wonderland, I'm sorry but I can't do better than this. I hate messing with computers... I just figured I'd share what worked for me.
Post Reply