1

Could you please help me find how I could put the numbers of the pages on the top of each page as is used in classicthesis? This is my mwe :

\documentclass[fontsize=12pt,%
               twoside=semi,%
               headings=small,%
               chapterprefix=true,%
               listof=flat]%
{scrbook}
\addtokomafont{pageheadfoot}{\scshape\small}%changed to small caps in headers
\usepackage{lipsum}
\begin{document}
\chapter{A chapter}
\lipsum

\chapter{Another chapter}
\lipsum

\end{document}
lockstep
  • 250,273
domi
  • 1,473
  • If you just want the page numbers on top you could have a look at scrlayer-scrpage and its commands to alter pagestyle. – TeXnician Feb 15 '17 at 11:43
  • 1
    Have a look at http://tex.stackexchange.com/a/353331/124842 – Bobyandbob Feb 15 '17 at 11:50
  • @Schweinebacke Where in her question does domi say she wants to use classicthesis??? – PhilipPirrip Feb 16 '17 at 08:09
  • I am not about to change anything into classicthesis. I just want to have the same layout for the pages headers. @TeXnician : your suggestion does not work with me. Do I have to remove my scrbook class and set it with scrlayer-scrpage? – domi Feb 16 '17 at 08:47
  • @domi: scrlayer-scrpage is a package not a class. See the KOMA-Script manual (scrguide.pdf or scrguien.pdf) for more information. – Schweinebacke Feb 16 '17 at 15:36
  • @PhilipPirrip: Tag classicthesis had been used. – Schweinebacke Feb 16 '17 at 15:36

1 Answers1

1
\documentclass[fontsize=12pt,%
               twoside=semi,%
               headings=small,%
               chapterprefix=true,%
               listof=flat]%
{scrbook}
\usepackage[automark]{scrlayer-scrpage}% See scrguien.pdf, chapter 5
\ihead{\headmark}% running head at the inner edge of the page head
\ohead*{\pagemark}% page number at the outer edge of the page head (plain pages too)
\ofoot*{}% no page number at the outer edge of the page footer (plain pages too)
\addtokomafont{pageheadfoot}{\scshape\small}%changed to small caps in headers
\usepackage{mwe}
\begin{document}
\blinddocument
\blinddocument
\end{document}

two pages

Schweinebacke
  • 26,336