I would like to generate something like the pictures below. I already got the blue line and the numbering. Now i would like to also show the chapter name on the left pages, and the section name of the latest section on the right page.
I already tried to use \leftmark in the page numbering. But then it will be on the wrong side of the line.
How can i do this? Any hints are welcome :)
Thanks to all who will contribute :)
--- Edit
Here is the minimal code which shows, how i made the actual design:
\documentclass[twoside=true,a4paper,1.5pt,titlepage=on,]{scrreprt}
\usepackage{fancyhdr}
\usepackage{xcolor}
\definecolor{chaptercolor}{rgb}{0.36,0.73,0.82}
\fancypagestyle{plain}{%
\fancyhf{}
\fancyfootoffset[OR]{1.85cm}
\fancyfoot[OR]{%
{\ }%\tgherosfont%
{\color{chaptercolor}\rule[-90pt]{0.8mm}{100pt}}%
\hspace*{10pt}\begin{minipage}[b]{1.5cm}%
\color{chaptercolor}\normalsize\textbf{\thepage}%
\end{minipage}%
}
\fancyfootoffset[EL]{1.85cm}
\fancyfoot[EL]{%
%\tgherosfont%
\begin{minipage}[b]{1.5cm}%
\raggedleft\color{chaptercolor}\normalsize\textbf{\thepage \leftmark}%
\end{minipage}%
\hspace*{10pt}{\color{chaptercolor}\rule[-90pt]{0.8mm}{100pt}}%
}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
}
\fancypagestyle{maincontentstyle}{%
\pagestyle{plain}
\fancyhf{}
\fancyfootoffset[OR]{1.85cm}
\fancyfoot[OR]{%
{\ }\tgherosfont\footnotesize%
\rightmark%
\hspace*{0.75cm}{\color{ctcolorfooterline}\rule[-90pt]{1.25pt}{100pt}}%
\hspace*{10pt}\begin{minipage}[b]{1.5cm}%
\color{chaptercolor}\normalsize\textbf{\thepage }%
\end{minipage}%
}
\fancyfootoffset[EL]{1.85cm}
\fancyfoot[EL]{%
\tgherosfont\footnotesize%
\begin{minipage}[b]{1.5cm}%
\raggedleft\color{chaptercolor}\normalsize\textbf{\thepage }%
\end{minipage}%
\footnotesize%
\hspace*{10pt}{\color{chaptercolor}\rule[-90pt]{1.25pt}{100pt}}%
\hspace*{0.75cm}\leftmark%
}
}
\pagestyle{fancy}
\fancyhf{}
\fancyfootoffset[OR]{1.85cm}
\fancyfoot[OR]{%
{\ }%\tgherosfont%
{\color{chaptercolor}\rule[-90pt]{0.8mm}{100pt}}%
\hspace*{10pt}\begin{minipage}[b]{1.5cm}%
\color{chaptercolor}\normalsize\textbf{\thepage}%
\end{minipage}%
}
\fancyfootoffset[EL]{1.85cm}
\fancyfoot[EL]{%
%\tgherosfont%
\begin{minipage}[b]{1.5cm}%
\raggedleft\color{chaptercolor}\normalsize\textbf{\thepage}%
\end{minipage}%
\hspace*{10pt}{\color{chaptercolor}\rule[-90pt]{0.8mm}{100pt}}%
}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\usepackage{blindtext}
\begin{document}
\tableofcontents
\Blinddocument
\end{document}
fancyhdr
,titleps
,scrlayer-scrpage
, ...) and maybe it depends on the document class too. – esdd May 17 '19 at 14:22