如何将页码放在每页的顶部?

如何将页码放在每页的顶部?

您能帮我找到如何将页码放在每页顶部的方法吗classicthesis?这是我的 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}

答案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

相关内容