For a document, I use the following setup:
\usepackage{scrextend}
\usepackage[automark]{scrpage2}
\renewcommand{\headfont}{\sffamily}
\clearscrheadfoot
\cfoot{\pagemark}
\setkomafont{pagenumber}{\normalfont\sffamily}
\renewcommand{\chapterpagestyle}{scrheadings}
\defpagestyle{std}{(0 pt, 0 pt){\headmark\hfill}{\hfill\headmark}{}(\textwidth,1 pt)}{(0 pt, 0 pt){\pagemark}{\hfill\pagemark}{}(0 pt, 0 pt)}
Basically, this works just fine for me. However, I have a small but very nettlesome problem that all blank pages (after the TOC), produced by the command openright
for example, do not contain a page number. I was wondering if there is a simple way to solve this?
\documentclass{...}
, the required\usepackage
's,\begin{document}
, and\end{document}
.\cleardoublepage
command. you might look for that definition, and adjust as appropriate.