# Page numbering in lower right corner (classicthesis)

I'm using classicthesis 4.1 in LyX to write my thesis and I need help with the page numbering.

How do I force the all page numbers to stay at the lower right corner?

classicthesis uses the scrpage2 package to customize the headers and footers; you can add the page to the footer alway to the right with a redefinition of the scrheadings page style:

\documentclass{scrbook}
\usepackage{classicthesis}
\usepackage{lipsum}

\makeatletter
\ifthenelse{\boolean{@nochapters}}%
{\relax}%
{\renewcommand{\chaptermark}[1]{\markboth{\spacedlowsmallcaps{#1}}{\spacedlowsmallcaps{#1}}}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\enspace\spacedlowsmallcaps{#1}}}
\refoot{\thepage}
\rofoot{\thepage}
% hack to get the content headlines right (thanks, Lorenzo!)
\ifthenelse{\boolean{@nochapters}}%
{\section*{\contentsname}}%nochapters
{\chapter*{\contentsname}}%chapters
\@mkboth{\spacedlowsmallcaps{\contentsname}}{\spacedlowsmallcaps{\contentsname}}}
\makeatother

\begin{document}

\chapter{Test chapter}
\section{Test section}
\lipsum[1-20]

\end{document}


A detail of the bottom of two consecutive pages:

• You mean package scrpage2? – karlkoeller Aug 30 '13 at 20:48
• @karlkoeller hahaha! Of course! I've fixed it. Thanks! – Gonzalo Medina Aug 30 '13 at 20:54
• @GonzaloMedina Thank you, it did the job for the arabic page numbering, but unfortunately not the roman page numbering on the Frontmatter. It runs with \frenchspacing \raggedbottom \pagenumbering{roman} \pagestyle{plain}. – SplitteMineBramsejl Aug 30 '13 at 21:43
• @user212704 seems like you need to redefine the plain style. – Gonzalo Medina Aug 30 '13 at 21:45