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 18494 times
nothing on the top left:
208.PNG
208.PNG (6.37 KiB) Viewed 18494 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
Post Reply