0

how can I remove the big space between the Header (e.g. List of Tables) and the fancyhdr? Do I need to set this in the \pagestyle definition?

Merci in advance A

\documentclass[openany,11pt]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{fancyhdr}
\fancypagestyle{plain}{%
\fancyhf{}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0pt}
\addtolength{\headheight}{0.5pt}
\fancyhead[LE,RO]{\leftmark}
\fancyhead[RE,LO]{WHAT I WANT TO SEE}}


\begin{document}


\listoffigures % Prints the list of figures

\newpage
\listoftables % Prints the list of tables

\chapter{Prämissen des Modells}

Header is correct on this page.

\newpage

\section{Grundannahmen zum Modell diskrete Betriebsstunden}

And wrong on this one.
\end{document}
  • if you highlight all of the code and use the {} button (or ctrl-k shortcut) it will be formatted as code – David Carlisle Apr 12 '18 at 20:00
  • Aeorius, did you have a look at fancyhdr package documentation ? – BambOo Apr 12 '18 at 20:03
  • Also, not related to your question but why do you sign your questions with merci in advance ? – BambOo Apr 12 '18 at 20:05
  • 1
    You can use titlesec to customise the formatting/spacing of \chapter. – Bernard Apr 12 '18 at 20:12
  • 1
    Aerioeus, see TeX.SX starter guide. It is not an issue to learn, and learning latex for sure takes time, but when asking a question, it is very important to show people what you have tried so far (code snippets, web pages where you got information from ...). This way help will come faster ! – BambOo Apr 12 '18 at 20:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.