Page LayoutHeader Subsection / Section

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
OleHartmann
Posts: 5
Joined: Wed Jul 12, 2023 6:14 pm

Header Subsection / Section

Post by OleHartmann »

Hello
I wanted to display the respective subsection at the top of the header, which also worked. However, I now have the problem that when a page starts with a section, there is simply nothing at the top. Is there a way to display the section there in this case?

So far I have used:
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[R]{\thepage}
\fancyhead[L]{\rightmark}
\setlength{\headheight}{15pt}
\addtolength{\topmargin}{-3pt}
An image where it works perfectly fine:
207.PNG
207.PNG (19.66 KiB) Viewed 29924 times
nothing on the top left:
208.PNG
208.PNG (6.37 KiB) Viewed 29924 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Post Reply