From e1c31b4fb93b72b83db80bcb7febed0d98b0d6a7 Mon Sep 17 00:00:00 2001 From: KoCoder Date: Fri, 20 Mar 2026 18:29:39 +0100 Subject: [PATCH] Modify TOC, Headlines and Footers --- 00-toc.md | 2 +- _extensions/header/header.tex | 8 ++++---- pandoc-cmd.sh | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/00-toc.md b/00-toc.md index ecfa863..c7f4382 100644 --- a/00-toc.md +++ b/00-toc.md @@ -1,5 +1,5 @@ \pagestyle{empty} -# Inhaltsverzeichnis {-} +# Inhaltsverzeichnis {.unnumbered .unlisted} \tableofcontents diff --git a/_extensions/header/header.tex b/_extensions/header/header.tex index a831209..89a52d3 100644 --- a/_extensions/header/header.tex +++ b/_extensions/header/header.tex @@ -12,14 +12,14 @@ % Define the fancy style but don't activate yet \fancypagestyle{fancy}{ \fancyhf{} % clear all header and footer fields - \fancyhead[RO,LE]{\includegraphics[height=1.5cm]{images/preamble/logo.png}} + \fancyhead[RO,LE]{\includegraphics[height=2cm]{images/preamble/logo.png}} \fancyhead[LO,RE]{\nouppercase{\leftmark}} \fancyfoot[RO,LE]{\thepage} \renewcommand{\headrulewidth}{0.4pt} \renewcommand{\footrulewidth}{0.4pt} - \newgeometry{top=2.5cm, bottom=2cm, left=3cm, right=2cm, includehead, includefoot} - \setlength{\headheight}{50pt} - \setlength{\footskip}{30pt} + \newgeometry{top=2.5cm, bottom=4cm, left=3cm, right=2cm, includehead, includefoot, a4paper} + \setlength{\headheight}{2cm} + \setlength{\footskip}{1.5cm} } \renewcommand{\sectionmark}[1]{\markboth{#1}{}} % Set section title to \leftmark diff --git a/pandoc-cmd.sh b/pandoc-cmd.sh index ac8a78a..ee49eab 100755 --- a/pandoc-cmd.sh +++ b/pandoc-cmd.sh @@ -15,7 +15,7 @@ pandoc \ --bibliography sources.bib \ --include-before-body 00_preamble.tex \ -H _extensions/header/header.tex \ - -V geometry:"top=2.5cm, bottom=2cm, left=3cm, right=2cm" \ + -V geometry:"top=2.5cm, bottom=2cm, left=3cm, right=2cm, a4paper" \ -V toc-title="Inhaltsverzeichnis" \ -V classoption=twoside \ -V fontsize=12pt \