TransWikia.com

Remove headings on several pages of TOC

TeX - LaTeX Asked on April 23, 2021

My table of contents in moving into the 3-4 page domain, and i have noticed that this causes headings and pagenumbers to appear.
This is my code

documentclass[12pt]{extarticle}

%Indholdsfortegnelse
renewcommand{contentsname}{Indholdsfortegnelse}

usepackage{fancyhdr}
pagestyle{fancy}
fancyhead{}
lhead{Gruppe BA3-1-E20}
chead{Aalborg Universitet}
    %DETTE ER BILLED TIL HEADER%
    rhead{includegraphics[width=3cm,height=1.5cm]{Billeder/AAU lille billed.png}}

begin{document}

newgeometry{top=20mm, bottom=20mm, right=20mm, left=20mm}
thispagestyle{empty}
tableofcontents
thispagestyle{empty}
cleardoublepage

end{document}

This way removes the headers and pagenumber on two pages, but how can remove on all pages, regardless of length of TOC?

One Answer

use pagestyle{empty} not thispagestyle{empty} then set the page style you want for your main text after the cleardoublepage with pagestyle{fancy} or whatever page style you needfor the main document.

Correct answer by David Carlisle on April 23, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP