LyX ⇒ LyX error message concerning the LaTeX preamble
LyX error message concerning the LaTeX preamble
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.
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, ...)?
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
-
- Site Moderator
- Posts: 542
- Joined: Sat Sep 01, 2012 6:38 am
Re: LyX error message concerning the LaTeX preamble
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
Re: LyX error message concerning the LaTeX preamble
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
LyX error message concerning the LaTeX preamble
No, I have no backup. I tried to use the versioning system of LyX, but it failed.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.
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...
LyX error message concerning the LaTeX preamble
I've attached the master document of my book and the .tex-export in the LuaTeX-, XeTeX-, PDFLaTeX and normal LaTeX-version.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
If you need more material to help, please don't hesitate to tell me.
-
- Site Moderator
- Posts: 542
- Joined: Sat Sep 01, 2012 6:38 am
Re: LyX error message concerning the LaTeX preamble
Can you make your example smaller?
Re: LyX error message concerning the LaTeX preamble
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
