LyX ⇒ Just started problem
Just started problem
- I downloaded the latest version I found on the website of Lyx for Ubuntu, everything was installed correctly, and I opened the program without any problem.
So the problem? Well, after writing any text I pressed the "eyed button" to see how it would look what was written in another format (such as pdf) and throws me the following error without showing the pdf:
errors:
- Undefined Control sequence
- LaTeX Error: Missing \ begin {document}
- Undefined Control sequence
The thing is, I do not think I changed any configuration option and do not understand this error and, perhaps because my total ignorance about LaTeX.
I have to add this: if I open the "Tutorial" or any document you can find in the "Help" section of Lyx, I pressed the "eyed buttom" and the error doesn't appear on my screen: the pdf is shown.
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
-
- Posts: 89
- Joined: Fri Jan 24, 2014 12:42 am
Re: Just started problem
Things to check in Document Settings:
What document class are you using?
Did you put anything in the preamble? If so, what?
Things to check in your document:
What are the first few lines of your document?
Did you use any ERT (red boxes of LaTeX code) in your document? If so, what did you type in the first one?
-
- Site Moderator
- Posts: 542
- Joined: Sat Sep 01, 2012 6:38 am
Re: Just started problem
Also, try exporting a simple LyX document to LaTeX (pdflatex) by going to File > Export and then on the command line run pdflatex filename.tex. Post the filename.tex file here also.
Finally, consider using the LyX PPA so that you can use the latest version of LyX on Ubuntu:
http://wiki.lyx.org/LyX/LyXOnUbuntu
Re: Just started problem
I'll try to answer the questions StarValkyrie asked me about:
-The class of doc is "article", but if I change it the problem continues.
- I didn't put any preamble.
-I think it doesn't matter the first few lines because for exmple, if I just type a line or even only one word like "This is my story", after pressing the eyed button the error from the previous post appear.
- No ERT used.
I added the two files.
Thank you

- Attachments
-
- archivo nuevo1.tex
- This is the latex exported file you asked me also
- (1.77 KiB) Downloaded 258 times
-
- archivo nuevo1.lyx
- This is the .lyx file scottkosty asked me
- (2.57 KiB) Downloaded 261 times
-
- Site Moderator
- Posts: 542
- Joined: Sat Sep 01, 2012 6:38 am
Re: Just started problem
1. Go to Document > Settings > LaTeX Preamble (at the bottom) and delete everything.
2. Go to Document > Settings > Modules and delete all (the white rectangle on the right should be blank now).
3. go to Document > Settings > Document Class and change the class to "Article (Standard Class)".
Re: Just started problem
I just can say THANK YOU

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