## LaTeX forum ⇒ Page Layout ⇒ remove headrule from specific pages/sections Topic is solved

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

### remove headrule from specific pages/sections

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
`\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
`\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 (197.97 KiB) Viewed 465 times

Stefan Kottwitz
Posts: 8373
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:
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