How to set page numbers for front matters similar to main matters. Main matters header need to have chapter title also. Not added in MWE. Front matters must have only page number as in main matters of MWE.
%
\documentclass[12pt]{scrbook}
\usepackage{scrpage2}
\usepackage{amsmath}
\usepackage{graphicx}
\title{Your Paper}
\author{You}
\begin{document}
\frontmatter
\maketitle
\tableofcontents
\mainmatter
\pagestyle{scrheadings}
\clearscrheadfoot
\ohead[\pagemark]{\pagemark}
\chapter{First}
\section{Introduction}
Text
\section{Some Examples}
Text
\subsection{Sections}
Text
\clearpage
\subsection{Tables and Figures}
Text
\end{document}
Best Answer
Use the
scrplain
pagestyle for\frontmatter
, and switch toscrheadings
for\mainmatter
. Optionally, redefine the\chapterpagestyle
command at\mainmatter
. If you want the first pages of frontmatter and mainmatter chapters to show no header/footer at all, add\renewcommand*{\chapterpagestyle}{empty}
to the preamble.