Page Layoutremove headrule from specific pages/sections

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
Fed89
Posts: 21
Joined: Thu May 16, 2013 3:01 pm

remove headrule from specific pages/sections

Post by Fed89 »

Hello everyone,

I am using lyx to write my thesis with memoir class.
As i did not like the default headers/footers, i redefined them like this

Code: Select all

\uppercaseheads \nouppercaseheads
\makeevenhead{headings}{\slshape\leftmark}{}{}
\makeoddhead{headings}{}{}{\slshape\leftmark}
\makeevenfoot{headings}{\thepage}{}{}
\makeoddfoot{headings}{}{}{\thepage}
\makeheadrule{headings}{\textwidth}{\normalrulethickness}
So i have page number in the bottom-exterior of the pages and the chapter name in the top-exterior corner of the pages.
I have headrule. I generally like the way the headrule is displayed (not in the chapter page, where there is no header; and not in the empty double pages, for example at the end of a chapter).
But for example it appears on the second page of the the ToC, LoF and LoT. As they are only 1 or 2 page long each, i removed their headers

Code: Select all

\markboth{}{}
so i would like them not to have the headrule either... (see attached screenshot)
How can i achieve this?

Thanks in advance for the help!
Attachments
Capture.PNG
Capture.PNG (197.97 KiB) Viewed 4108 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

remove headrule from specific pages/sections

Post by Stefan Kottwitz »

Hi,

quick and easy: set

\makeheadrule{headings}{0pt}{0pt}

before ToC, LoF, LoT, after it set again

\makeheadrule{headings}{\textwidth}{\normalrulethickness}

Alternatively you could define an own page style without rule.

Stefan
LaTeX.org admin
Fed89
Posts: 21
Joined: Thu May 16, 2013 3:01 pm

remove headrule from specific pages/sections

Post by Fed89 »

thanks!
Post Reply