LaTeX forum ⇒ Page Layoutremove 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

Postby Fed89 » Fri Apr 21, 2017 11:20 am

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
  1. \uppercaseheads \nouppercaseheads
  2. \makeevenhead{headings}{\slshape\leftmark}{}{}
  3. \makeoddhead{headings}{}{}{\slshape\leftmark}
  4. \makeevenfoot{headings}{\thepage}{}{}
  5. \makeoddfoot{headings}{}{}{\thepage}
  6. \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
  1. \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 246 times

User avatar
Stefan Kottwitz
Site Admin
Posts: 8206
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Fri Apr 21, 2017 3:19 pm

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
Site admin

Fed89
Posts: 21
Joined: Thu May 16, 2013 3:01 pm

Postby Fed89 » Fri Apr 21, 2017 4:58 pm

thanks!


Return to “Page Layout”

Who is online

Users browsing this forum: No registered users and 9 guests