Hello to my readers; no more than one day ago I installed this wellknown program by a personal recommendation and I find the following problem which hardly leaves me get started:
- 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.
LyX ⇒ Just started problem
NEW: TikZ book now 40% off at Amazon.com for a short time.

-
- Posts: 89
- Joined: Fri Jan 24, 2014 12:42 am
Re: Just started problem
This error usually means there's a problem in the preamble, the package files you chose to load, or in something you typed at the beginning of your document, but we need more information to figure out which caused it this time.
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?
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
This is strange. Can you open a document, type a few words, and save the .lyx file and post it here?
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
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
First of all, thank you StarValkyrie scottkosy for your comments.
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
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 263 times
-
- archivo nuevo1.lyx
- This is the .lyx file scottkosty asked me
- (2.57 KiB) Downloaded 278 times
-
- Site Moderator
- Posts: 542
- Joined: Sat Sep 01, 2012 6:38 am
Re: Just started problem
I can reproduce that it does not compile. To solve this:
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)".
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
you are right scottkosty!, my problem has gone away.
I just can say THANK YOU
I just can say THANK YOU

-
- Site Moderator
- Posts: 542
- Joined: Sat Sep 01, 2012 6:38 am
Re: Just started problem
Glad it worked. You might also want to click on "Save As Document Defaults" in the bottom of Document > Settings.