I need a site without page style at the end of a document. But the command doesn´t work. How can I solve this?
\documentclass[BCOR=10mm,DIV=11]
{scrreprt}
\usepackage{setspace}
\usepackage{blindtext}
\usepackage[
automark, %% Kapitelangaben in Kopfzeile automatisch erstellen
headsepline,
footsepline,
plainheadsepline,
plainfootsepline
]{scrlayer-scrpage}
\setkomafont{captionlabel}{\bfseries} %% Label-Bildunterschrift fett
\setkomafont{pageheadfoot}{\small} %% Kopfzeile klein
%\setheadsepline{0.4pt} %% Kopf-Linie
%\setfootsepline{0.4pt} %% Fuß-Linie
\pagestyle{scrheadings}
\ihead[]{}
\chead[]{}
\ohead[\headmark]{\headmark}
\ifoot[]{}
\cfoot[\pagemark]{\pagemark}
\ofoot[]{}
\AfterTOCHead{\singlespacing}
\onehalfspacing
\KOMAoptions{DIV=last}
\begin{document}
\begin{spacing}{1}
\title{Titel}
\author{1}
\end{spacing}
\begin{spacing}{1}
\maketitle
\end{spacing}
\tableofcontents
\chapter{Test}
\subsection{1}
\subsection{2}
\Blindtext
\chapter{Test1}
\subsection{1}
\subsection{2}
\Blindtext
\chapter{Test2}
\subsection{1}
\subsection{2}
\Blindtext
\chapter{Test3}
\subsection{1}
\subsection{2}
\Blindtext
\chapter{Test4}
\subsection{1}
\subsection{2}
\Blindtext
\chapter{Test4}
\subsection{1}
\subsection{2}
\Blindtext
\chapter{Test4}
\subsection{1}
\subsection{2}
\Blindtext
\chapter{Test4}
\subsection{1}
\subsection{2}
\Blindtext
\chapter{Test4}
\subsection{1}
\subsection{2}
\Blindtext
\chapter{Test4}
\subsection{1}
\subsection{2}
\Blindtext
\thispagestyle{empty}
\chapter*{Erklärung}
%\begin{flushleft}
\vspace*{10ex}
%\noindent\textit{Hiermit versichere ich, dass ich die vorliegende Abschlussarbeit selbstständig verfasst und keine anderen als die angegebenen Quellen und Hilfsmittel verwendet %habe.} \par\vspace{1ex}
%\noindent
\noindent\textit{Ich erkläre hiermit eidesstattlich, dass ich die vorliegende Arbeit selbständig angefertigt habe. Die aus fremden Quellen übernommenen Gedanken
sind als solche kenntlich gemacht. Die Arbeit wurde bisher keiner anderen Prüfungsbehörde vorgelegt und auch nicht veröffentlicht. Ich bin mir bewusst, dass eine unwahre Erklärung rechtliche Folgen haben kann.}\par\vspace{3ex}
\noindent
\rule[0.0cm]{4.3cm}{0.4pt}\par
\noindent
\par\vspace{8ex}
\noindent\textit{Seitens des Verfassers bestehen keine Einwände, die Arbeit für die öffentliche Nutzung zur Verfügung zu stellen.} \par\vspace{3ex}
\noindent
\rule[0.0cm]{4.3cm}{0.4pt}\par
\noindent
%\end{flushleft}
\end{document}
\chapter*{Erklärung}\thispagestyle{empty}– Sigur Sep 15 '14 at 22:43\pagestyleinstead of\thispagestyle. – Sigur Sep 15 '14 at 22:50openrightoption so any new chapter will start on a new right page. – Sigur Sep 15 '14 at 23:02\newpage \pagestyle{empty} \chapter*{Erklärung}??? – Aradnix Sep 15 '14 at 23:03openright=on/yes/trueI don't think so. – Aradnix Sep 15 '14 at 23:05\documentclass[BCOR=10mm,DIV=11,openany] {scrreprt}. – Sigur Sep 15 '14 at 23:06openanyas I wrote. – Sigur Sep 15 '14 at 23:11scrreprtclass uses the options\documentclass[abstract=false,captions=tablesignature,chapteratlists=10pt,chapterprefix=false,draft=false,fontsize=11pt,footsepline=false,headings=big,headsepline=false,listof=graduated,open=any,paper=a4,parindent=default,titlepage=true,toc=graduated,twocolumn=false,twoside=false,version=first]{scrreprt}So you was right, and me too, because that option was not in the class file options of the MWE. – Aradnix Sep 15 '14 at 23:17\addchap*{erklärung}provided by KOMA-script. Hence marking it as a duplicate. – Johannes_B Nov 02 '14 at 10:46