LaTeX forum ⇒ Page LayoutHeader Subsection / Section

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

Header Subsection / Section

Postby OleHartmann » Fri Oct 13, 2023 1:35 pm

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 1332 times

nothing on the top left:
208.PNG
208.PNG (6.37 KiB) Viewed 1332 times

Recommended reading 2021:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics

Return to “Page Layout”

Who is online

Users browsing this forum: No registered users and 6 guests