LyXLyX error message concerning the LaTeX preamble

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
ebop
Posts: 4
Joined: Wed May 18, 2016 4:18 pm

LyX error message concerning the LaTeX preamble

Post by ebop »

LyX 2.2, MikTeX 2.9 updated today, Windows 7 32 bit

I'm working on a book. Compilation never failed up to now. Suddenly error messages concerning the LaTeX preamble appeared (see attachment) although I haven't changed anything in the preamble.
Error message when using XeTeX
Error message when using XeTeX
XeTeX-Error.png (27.48 KiB) Viewed 5388 times
Error message when using LuaTeX
Error message when using LuaTeX
LuaTeX-Error.png (26.5 KiB) Viewed 5388 times
The document doesn't compile at all and throws tons of error messages. It seems LaTeX suddenly doesn't know special characters like ä, ö, ü etc. any more. I checked the coding of all files - they are UTF-8 or UTF-8 without BOM without any exception.

What do you need to help (the whole document, preamble only, ...)?

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: LyX error message concerning the LaTeX preamble

Post by scottkosty »

I'm hoping you have backups? If so, just look at the differences between the last backup that worked and the file now. Figure out which change caused the problems.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: LyX error message concerning the LaTeX preamble

Post by Stefan Kottwitz »

"Updated today"? Oh.

Also I hope you have backups. I make copies of versions all the time when I write a book or longer documents. Make a copy of all your documents before trying something else. For example: a PDF copy may still give you the content back if the .lyx file would be destroyed, but another compilation could replace that PDF.

I suggest also to look at the affected .lyx file with a simple text editor, as it should be readable text.

You could post your .lyx file and additonally a pdfLaTeX export file here in the forum, as attachment to a post. (To protect the data, you could remove this attachment later on, or I can do for you)

Stefan
LaTeX.org admin
ebop
Posts: 4
Joined: Wed May 18, 2016 4:18 pm

LyX error message concerning the LaTeX preamble

Post by ebop »

scottkosty wrote:I'm hoping you have backups? If so, just look at the differences between the last backup that worked and the file now. Figure out which change caused the problems.
No, I have no backup. I tried to use the versioning system of LyX, but it failed.

The file I talked about didn't change at least for several weeks. That means: The identical document once compiled and for unknown reasons suddenly didn't...
ebop
Posts: 4
Joined: Wed May 18, 2016 4:18 pm

LyX error message concerning the LaTeX preamble

Post by ebop »

Stefan_K wrote:...

You could post your .lyx file and additonally a pdfLaTeX export file here in the forum, as attachment to a post. (To protect the data, you could remove this attachment later on, or I can do for you)

Stefan
I've attached the master document of my book and the .tex-export in the LuaTeX-, XeTeX-, PDFLaTeX and normal LaTeX-version.
2016-05-23.zip
.lyx-file and .tex-files
(14.92 KiB) Downloaded 163 times
If you need more material to help, please don't hesitate to tell me.
scottkosty
Site Moderator
Posts: 542
Joined: Sat Sep 01, 2012 6:38 am

Re: LyX error message concerning the LaTeX preamble

Post by scottkosty »

That file seems pretty massive. Please take a look at https://wiki.lyx.org/FAQ/MinimalExample

Can you make your example smaller?
ebop
Posts: 4
Joined: Wed May 18, 2016 4:18 pm

Re: LyX error message concerning the LaTeX preamble

Post by ebop »

I've stopped looking for a solution for the above mentioned errors. I simply returned to LyX 2.1.4 - and compilation runs smoothly!

Thanks to everyone who tried to help me! I think the next problem isn't far away. But for now I say: bye and thanks for the fish ;)
Post Reply