[Tex/LaTex] Formatting header and page numbering

header-footerkoma-scriptpage-numbering

I'd like you to help me with something rather simple:

  1. I want to remove the numbering on the first page of my document but not the header.

  2. The header must be always the same, now in the second page it says "References."

\documentclass[twoside,parskip=half,numbers=noendperiod,abstract=true]{scrartcl}
\usepackage[british]{babel}

%Bibliography
\usepackage[style=apa,backend=biber]{biblatex}
\DeclareLanguageMapping{british}{british-apa}
\addbibresource{Bibliography-APA_w_header.bib}

\usepackage[utf8]{inputenc}
\usepackage[pdftex]{graphicx}    
\usepackage{microtype,textcomp}
\usepackage[a4paper,left=25mm,right=25mm,top=25mm,
bottom=25mm, headsep=10mm]{geometry} 

\usepackage{multicol} 
\usepackage{hyperref} 
\usepackage{paralist}
\usepackage{blindtext}

\renewcommand*{\thesection}{\Roman{section}.} 
\renewcommand*{\thesubsection}{\arabic{subsection}}

\setkomafont{title}{\normalfont\LARGE\bfseries}
\setkomafont{subtitle}{\normalfont\Large\bfseries}
\setkomafont{subsection}{\normalfont\large\bfseries}
\setkomafont{subsubsection}{\normalfont\large}
\setkomafont{author}{\normalfont\large}

%Header
\usepackage{scrlayer-scrpage} 
\pagestyle{scrheadings} 
\ihead{}\ohead{}\chead{\headmark}
\setkomafont{pageheadfoot}{\normalfont}
\markboth{Title \textbullet{} Course \textbullet{} 2015}
{Title \textbullet{}
Course \textbullet{} 2015} 

\KOMAoptions{headsepline=true}

\title{Elbør, Jancka und dann Zickler}
\subtitle{Subtitle of the paper}

\author{\textsc{Name Surname}\\[2ex]
\normalsize Unversity Name\\ 
\normalsize \href{mailto:name@domain.com}{name@domain.com}}
\date{}

\setlength{\skip\footins}{11mm}

\begin{document}
\maketitle
\thispagestyle{scrheadings}
\unskip\vspace{-1.5\baselineskip}

\begin{abstract}
\KOMAoptions{parskip=half}
\noindent Er hörte leise Schritte hinter sich. Gerade jetzt, wo er das Ding \parencite{book} seines Lebens gedreht hatte und mit der Beute verschwinden wollte! Hatte einer seiner zahllosen Kollegen dieselbe Idee gehabt, ihn beobachtet und abgewartet, um ihn nun um die Früchte seiner Arbeit zu erleichtern? Weil wir haben gesehen viele Male solche Spiel! Oder gehörten die Schritte \parencite{web-noauthor-nodate} hinter ihm zu einem der unzähligen Gesetzeshüter dieser Stadt. Die Schritte wurden lauter und lauter, er sah eine dunkle Gestalt \parencite{web-noauthor-date} um die Ecke biegen. Fieberhaft irrten seine \parencite{web-author-nodate} Augen durch die nächtliche Dunkelheit und suchten einen Ausweg. War jetzt wirklich alles'' Danke. Offensiv, offensiv ist wie machen wir in Platz \parencite{web-author-date}. Wir haben gesehen viele Male solche Spiel! \parencite{blog-date}.
\end{abstract}
\vspace{7mm}

\begin{center}
\textbf{Keywords}: assignment \textperiodcentered{} project \textperiodcentered{} keyword
\end{center}

\medskip
\setlength\columnsep{24pt}
\begin{multicols}{2} % Two-column layout throughout the main article text

\section{Introduction}
\subsection{Subsection}
\blindtext\par
\blindtext\par
\blindtext\par
\blindtext\par

\printbibliography

\end{multicols}
\end{document}

Best Answer

Your main problem with the header changing is that you set it to be \headermark. Therefore, an update to \headermark will update the header accordingly. Instead, set to to some fixed value that doesn't depend on anything else.

You can place a condition in your header/footer for printing content depending on the page number:

\chead{Title \textbullet{} Course \textbullet{} 2015}
\ofoot{%
  \ifnum\value{page}>1 \thepage\fi}

The above prints the same header everywhere, and the footer text only after page 1. You can decide which header/footer content to be conditional, of course.


It may be more advisable to use a different page style for the first page. Then, set the entire document page style to scrheadings and \thispagestyle{firstpage} for the first page:

\newpagestyle{firstpage}
  {{}{\makebox[\linewidth]{Title \textbullet{} Course \textbullet{} 2015}}{}}% header content
  {{}{}{}}% (Remove) footer content
\chead{Title \textbullet{} Course \textbullet{} 2015}
\ofoot{\thepage}

%...

\pagestyle{scrheadings}% Entire document page style
\thispagestyle{firstpage}% First page page style