I like efficient but also nice looking page styles. One important thing for me is to see chapter as well as section-/ sub-section titles together with page numbers on the same vertical level. This looks like the following:
You will see that the page numbers are outside the text area. This can be accomplished while working with ‘memoir class’ with the following code in the preamble that produces a page style:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
% headers and footers
\makepagestyle{abook}
\makeheadposition{abook}{flushright}{flushleft}{}{}
\makerunningwidth{abook}{1.2\textwidth}
\makeoddhead{abook}{\itshape\rightmark}{}{\hspace{2em}\rule[-0.4ex]{0.4pt}{5mm}~~~\thepage\hspace{2em}}
\makeevenhead{abook}{\hspace{2em}\thepage~~~\rule[-0.4ex]{0.4pt}{5mm}\hspace{3em}}{}{\itshape\leftmark}
% PW
\makeatletter
\def\brule{\rule[1.5em]{\textwidth}{0.4pt}}
% LG
\def\abookheadrule{\ifodd\c@page\brule\else\hspace*{0.2\textwidth}\brule\fi}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%\makeatletter % because of \@chapapp
\makepsmarks {abook}{
\nouppercaseheads
\createmark {chapter} {both} {shownumber}{\@chapapp\ }{. \ }
\createmark {section} {right}{shownumber}{} {. \ }
\createmark {subsection} {right}{shownumber}{} {. \ }
\createmark {subsubsection}{right}{shownumber}{} {. \ }
\createplainmark {toc} {both} {\contentsname}
\createplainmark {lof} {both} {\listfigurename}
\createplainmark {lot} {both} {\listtablename}
\createplainmark {bib} {both} {\bibname}
\createplainmark {index} {both} {\indexname}
\createplainmark {glossary} {both} {\glossaryname}
}
\makeatother
\setsecnumdepth{subsubsection}
\pagestyle{abook}
The output can be seen here as .pdf and the .tex file is here. Thanks to Lars Madsen and Peter Wilson for their help to realize that. If you work with komascript, it is easy as well. The following code is necessary for the preamble:
\documentclass[oneside,english,ngerman]{scrbook}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\usepackage{scrpage2}
% make headrule
\setheadsepline{0.4pt}
% produce page numbers - different for even and odd pages
\lehead{
\hspace{2em}\pagemark~~~\rule[-0.4ex]{0.4pt}{5mm}\hspace{3em}\headmark
}
\rohead{
\headmark\hspace{3em}\rule[-0.4ex]{0.4pt}{5mm}~~~\pagemark\hspace{2em}
}
