# scrlayer-scrpage: different styles for different pages

thanks to this site I was able to get a functional implementation of scrlayer-scrpage.

\documentclass[12pt,headsepline,footsepline,plainfootsepline,plainheadsepline]{scrreprt}
\renewcommand{\familydefault}{\sfdefault}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{geometry}
\usepackage{graphicx}
\usepackage{xcolor,calc}
\definecolor{mygreen}{RGB}{23,156,125}
\usepackage{kantlipsum}

\usepackage{scrlayer-scrpage}

\setkomafont{footsepline}{\color{mygreen}}
\automark{chapter}
\ofoot*{\thepage}
\cfoot*{}

\begin{document}
\chapter*{Some chapter}
\tableofcontents{}
\part{Hello}
\chapter{Some chapter}
\kant[1-10]
\end{document}


This works as intended but I would like to have two changes. The chapter "Some Chapter" which does not show in the TOC should have its title in the header alongside with the logo but without the page number. And the "parts" page should have two logos in the header instead of title and logo. I tried it with

\newpairofpagestyles{speciallayout}{
\ofoot{}
\ofoot*{}}


but this didn't work.

Jon

Note that the unstarred version of \ihead sets only the content of the main page style while the starred version sets both. There is no need to use both if their argument ist the same.

On the first page of a chapter the plain style of the current pairofpagestyles is used. So you could define

\newpairofpagestyles[scrheadings]{specialchapter}{\ofoot*{}}


Then the pair of page styles specialchapter is a child of scrheadings with an empty outer footer.

To get the unnumbered chapter title in the header but not in table of contents use option headings=optiontoheadandtoc and use \addchap[tocentry={}]{Some chapter} instead \chapter*{Some chapter}.

Additionally you can define the page style for the part page by

\newpairofpagestyles[scrheadings]{part}{%
}
\renewcommand\partpagestyle{part}


Code:

\documentclass[12pt,headsepline,footsepline,plainfootsepline,plainheadsepline,
]{scrreprt}
\renewcommand{\familydefault}{\sfdefault}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{geometry}
\usepackage[demo]{graphicx}
\usepackage{xcolor,calc}
\definecolor{mygreen}{RGB}{23,156,125}
\usepackage{kantlipsum}

\usepackage[automark]{scrlayer-scrpage}
\clearpairofpagestyles
\ofoot*{\pagemark}
%\ifoot*{\currentpagestyle}% only to show which page style is active

\setkomafont{footsepline}{\color{mygreen}}

}

\renewcommand\partpagestyle{part}

\begin{document}
\pagestyle{specialchapter}