Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Using classic-thesis, and using \pagestyle{scrheadings} the first page of new chapters shows the page number at the bottom left/right corner of the page. I would like to change only the position of the page number and moving it to the top left/right. I searched and I guess that I have to use something like:

\deftripstyle{pgnumbottomcenter}{}{}{}{}{\pagemark{}}{}% Here I have to modify something
\pagestyle{pgnumbottomcenter}
\renewcommand{\chapterpagestyle}{pgnumbottomcenter}

What should I modify to move the page number to the top, (maintening all others characteristics of the page number style)?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

The KOMA-script document (section 5.2. Defining Own Page Styles) mentions the interface for \deftripstyle:

\deftripstyle{<name>}[<LO>][<LI>]{<HI>}{<HC>}{<HO>}{<FI>}{<FC>}{<FO>}

This allows you to set Headers and Footers for Inner, Outer and Centred locations on the page. Below I defined the page style pgnumtopouter that places \pagemark inside <HO>:

enter image description here

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

% \deftripstyle{<name>}[<LO>][<LI>]{<HI>}{<HC>}{<HO>}{<FI>}{<FC>}{<FO>}
\deftripstyle{pgnumbottomcenter}{}{}{}{}{\pagemark}{}% Here I have to modify something
\pagestyle{pgnumbottomcenter}
\deftripstyle{pgnumtopouter}{}{}{\pagemark}{}{}{}
\renewcommand{\chapterpagestyle}{pgnumtopouter}

\begin{document}

\chapter{First chapter}
\lipsum[1-7]

\chapter{Second chapter}
\lipsum[1-7]
\end{document}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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