4

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?

4

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
    \clearscrheadings
    \setheadsepline{0pt}
    \ifthenelse{\boolean{@nochapters}}%
        {\relax}%
        {\renewcommand{\chaptermark}[1]{\markboth{\spacedlowsmallcaps{#1}}{\spacedlowsmallcaps{#1}}}}
    \renewcommand{\sectionmark}[1]{\markright{\thesection\enspace\spacedlowsmallcaps{#1}}} 
    \lehead{\headmark}
    \rohead{\headmark}
    \refoot{\thepage}
    \rofoot{\thepage}
    \renewcommand{\headfont}{\small}  
%    \DeclareRobustCommand{\fixBothHeadlines}[2]{} % <--- ToDo
    % hack to get the content headlines right (thanks, Lorenzo!)
        \def\toc@heading{%
            \ifthenelse{\boolean{@nochapters}}%
            {\section*{\contentsname}}%nochapters
            {\chapter*{\contentsname}}%chapters
            \@mkboth{\spacedlowsmallcaps{\contentsname}}{\spacedlowsmallcaps{\contentsname}}}
\makeatother

\pagestyle{scrheadings}

\begin{document}

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

\end{document}

A detail of the bottom of two consecutive pages:

enter image description here

  • 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.