LyXJust started error

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 error

Post by Chiri »

Hello!

I'll try to explain it:

I've just started writing a new document in Lyx, an article document, and the first thing I would like to do is to write a "header".

So I select "Right header" and then I write what I want. Just after that I press the "eyed-button" to see it as a PDF but the next message appears: :cry:

"Undefined control sequence.

\rhead
{lolo}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined."

I definitly don't know how to fix it.

Thank for your comments :P

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

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Just started error

Post by Stefan Kottwitz »

\rhead is a command provided by the fancyhdr package. LyX uses it, if you set the page style to "fancy" in one of the document settings dialogs. If you don't find it, adding

Code: Select all

\usepackage{fancyhdr}
\pagestyle{fancy}
to the document preamble (LyX menu, document settings, preamble) could help, but first look for page style settings.

Stefan
LaTeX.org admin
Chiri
Posts: 5
Joined: Sun Jan 26, 2014 2:12 pm

Re: Just started error

Post by Chiri »

I didn't find the "page style" so I added what you wrote me and now everything goes OK :D

Thanks Stefan
Post Reply