I'm using the KOMA-Script to define my headings and I would like to show only the page number in the chapter start pages. I got this by creating a new style and using it with \thispagestyle{ChapterStyle}
after the \chapter{}
, but I have many chapters. Is there a way to add only the page number automatically to all the chapter start pages? Thanks for your attention and help!
Here follows what I've done:
\documentclass[a4paper,12pt,twoside]{report}
\usepackage{lipsum}
\usepackage[automark,headsepline,headtopline,footsepline,footbotline,nouppercase]{scrpage2}
\pagestyle{scrheadings}
\clearscrheadfoot
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\chead{\normalfont{\thechapter. \headmark}}
\cfoot{\pagemark}
% To define a page style
\deftripstyle{ChapterStyle}{}{}{}{}{\pagemark}{}
\begin{document}
\chapter{Chapter One}
\thispagestyle{ChapterStyle}
\lipsum
\chapter{Chapter Two}
\lipsum
\chapter{Chapter Three}
\lipsum
\chapter{Chapter Four}
\lipsum
\end{document}
chapter
page? The chapter start page?scrpage
is officially deprecated and replaced byscrlayer-scrpage
. Please have that in mind for your next document.\cfoot[\pagemark]{\pagemark}
. With the newest version (v3.14)\cfoot*{\pagemark}
. There is absolutely no need to fiddle with page styles.scrpage2
I'll have a look into it! I have tried\cfoot[\pagemark]{\pagemark}
before I asked the question, but the problem is that it adds a page number to my other headings, and it is not easy to define where to stop using it with\cfoot[]{}
. If I have a\lefoot{\pagemark}
for the heading\pagestyle{scrheadings}
which is my real case, with\cfoot[\pagemark]{\pagemark}
I get two page numbers in that heading one left and another in the center, if I have got you right!