LyXJust started problem

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
Chiri
Posts: 5
Joined: Sun Jan 26, 2014 2:12 pm

Just started problem

Post by Chiri »

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.

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

StarValkyrie
Posts: 89
Joined: Fri Jan 24, 2014 12:42 am

Re: Just started problem

Post by StarValkyrie »

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?
scottkosty
Site Moderator
Posts: 542
Joined: Sat Sep 01, 2012 6:38 am

Re: Just started problem

Post by scottkosty »

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
Chiri
Posts: 5
Joined: Sun Jan 26, 2014 2:12 pm

Re: Just started problem

Post by Chiri »

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 :)
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
scottkosty
Site Moderator
Posts: 542
Joined: Sat Sep 01, 2012 6:38 am

Re: Just started problem

Post by scottkosty »

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)".
Chiri
Posts: 5
Joined: Sun Jan 26, 2014 2:12 pm

Re: Just started problem

Post by Chiri »

you are right scottkosty!, my problem has gone away.

I just can say THANK YOU ;)
scottkosty
Site Moderator
Posts: 542
Joined: Sat Sep 01, 2012 6:38 am

Re: Just started problem

Post by scottkosty »

Glad it worked. You might also want to click on "Save As Document Defaults" in the bottom of Document > Settings.
Post Reply