I have trouble getting my footer right. I want it to look as follows: In ifoot, with the vertikal line on the left side being a continuous one:
| Name
| PLZ Ort
| Straße
in cfoot, horicontally centered:
empty line
confidential
\copyright Name 2020
in ofoot:
empty line
empty line
Seite x von y
I tried to code it like this:
\documentclass[a4paper,ngerman]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{helvet}
\renewcommand{\familydefault}{\sfdefault}
\usepackage[left=2cm, right=2cm, top=2cm, bottom=3cm]{geometry}
\usepackage{color}
\usepackage{lastpage}
\usepackage{scrlayer-scrpage}
\begin{document}
\clearpage
\clearpairofpagestyles
\setkomafont{pageheadfoot}{\sffamily\footnotesize}
\setkomafont{pagination}{}
\setlength{\footheight}{25mm}
\definecolor{hellblau}{RGB}{0, 176, 240}
\pagestyle{scrheadings}
\ihead{
Titel \newline
\textcolor{hellblau}{Untertitel}
}
\ohead{
Grafik
}
\ifoot{
\flushleft{\smash{\vfootline}
\hspace{5mm} Name \newline
\hspace{5mm} PLZ Ort \newline
\hspace{5mm} Straße}
}
\def\vfootline{%
\begingroup\color{hellblau}\rule[-35pt]{1pt}{35pt}\endgroup}
\cfoot{
Confidential \newline
\copyright Name \the\year
}
\ofoot{
\flushright{Seite \thepage von \pageref{LastPage}}
}
\renewcommand{\contentsname}{Inhaltsverzeichnis}
\tableofcontents
\section{Überschrift1}
\subsection{Überschrift1.1}
\subsubsection{Überschrift1.1.1}
\end{document}
I tried to insert the empty lines as well via \space \newline, but it didn't work out. Shouldn't the three parts of the footer all be horizontally aligned? And if not, is there an option I forgot to add or do I need to use a different concept, like tables or something? and what happened to the two spaces I inserted in line 2 and 3 of the inner foot?
thanks for your help in advance,
Bene


\newlength{\cfootoffset}and set this length to either to 0pt or the needed offset, eg.\setlength{\cfootoffset}{1cm}. This offset can be used in the table declaration of\cfoot:\begin{tabular}{@{\hspace{2\cfootoffset}}c@{}}. – esdd Aug 05 '20 at 22:44