\documentclass[a4paper, 13pt]{article} % Packages \usepackage[a4paper, inner=2.5cm, outer=2.5cm, top=2.5cm, bottom=2.5cm, bindingoffset=0cm]{geometry} \usepackage{amsmath,amsthm,amssymb,amsfonts} \usepackage{graphicx} \usepackage[colorlinks=true, allcolors=blue]{hyperref} \usepackage{fontspec,xunicode,xltxtra} \usepackage{afterpage} \usepackage{sectsty} \usepackage{tikz,float} \usepackage{kantlipsum,lipsum} \usepackage{eso-pic} \usepackage{fancyhdr} \usepackage{background} % Font \setmainfont{"[tierra-nueva.otf]"}[BoldFont="[tierra-nueva-bold.otf]"] \sectionfont{\fontsize{20}{15}\selectfont} % GERMAN \usepackage[ngerman=ngerman-x-latest]{hyphsubst} \usepackage[ngerman]{babel} % Figures \graphicspath{{figures/}} % Header & footer \renewcommand{\headrulewidth}{0pt} \renewcommand{\footrulewidth}{0pt} \setlength{\headheight}{60pt} \addtolength{\topmargin}{-35pt} \pagestyle{fancy} \fancyheadoffset{2.5cm} \fancyfootoffset{2.5cm} \fancyhf{} \fancyhead[L]{\hspace*{1cm}\vspace*{0.3cm}\Huge{\rightmark}} \fancyfoot[R]{\vspace*{-50pt}\includegraphics[keepaspectratio=true, width=\paperwidth]{welle.png}} \fancyfoot[L]{\vspace*{-1.3cm}\hspace*{3cm}\Huge{\thepage}} % Custom title command for header \renewcommand{\sectionmark}[1]{\markright{#1}} \renewcommand{\title}[1]{ \par\refstepcounter{section} \sectionmark{#1} \addcontentsline{toc}{section}{\protect\numberline{\thesection}#1} } \begin{document} \title{ABI Zeitung 2021} \author{RBS Ulm TG13} % Updated: https://tex.stackexchange.com/a/7657 % Import all tex files from a directory \def\app@exe{\immediate\write18} \def\inputall#1{ \app@exe{cat #1/*.tex > #1/files.tmp} \InputIfFileExists{#1/files.tmp}{}{} \AtEndDocument{\app@exe{rm -f #1/files.tmp}}} \def\part#1{\input{parts/#1.tex}\newpage} \def\student{\input{parts/studenttemplate.tex}} %\maketitle \backgroundsetup{contents={}} \part{titlepage} \backgroundsetup{contents={\includegraphics[keepaspectratio=true, width=\paperwidth]{kordel.png}},scale=1,placement=top,opacity=1,position=current page.north} \part{tableofcontents} \part{introduction} \part{classphoto} \part{questionnaire} \part{teacherprofiles} \part{teacherranking} \part{secrets} \part{classoverview} \part{studentprofiles} \part{studentranking} \part{citations} \part{photos} \part{trips} \part{courseoverview} \part{committeeoverview} \part{conclusion} \part{advertisements} \part{imprint} \end{document}