LyXunnumbered chapter title won't appear in headings

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
cigs
Posts: 3
Joined: Thu May 13, 2010 9:54 pm

unnumbered chapter title won't appear in headings

Post by cigs »

hi guys!

i have the following puzzle to solve:

in the preamble i put:

\usepackage{fancyhdr}
\fancyhead[EL,OR]{\thepage}
\fancyhead[ER]{\leftmark}
\fancyhead[OL]{\rightmark}
\renewcommand{\headrulewidth}{0.5pt}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{\thechapter\ \ #1}{}}
\renewcommand{\sectionmark}[1]{\markright{ \thesection\ \ #1}}

for my individual headings. it works fine except for those chapters that are unnumbered (defined as chapter*). in this case lyx uses the last numbered chapter instead.

does anyone have an idea how to solve this probelm?

you would help me a lot!!!!!!!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
User avatar
Stefan Kottwitz
Site Admin
Posts: 10308
Joined: Mon Mar 10, 2008 9:44 pm

unnumbered chapter title won't appear in headings

Post by Stefan Kottwitz »

Hi cigs,

you could call \markboth manually, use \markboth{title}{title} directly after \chapter*{title}.

stefan
LaTeX.org admin
cigs
Posts: 3
Joined: Thu May 13, 2010 9:54 pm

Re: unnumbered chapter title won't appear in headings

Post by cigs »

yes, that's it! thank's a lot!
your're the man ;)
Post Reply