I've been working a while now to get the layout the way I want it, but I still have two things that I can't seem to get fixed. I would like to have the page number of the empty page before the start of a chapter on the left side instead of the right side. Furthermore, I would like to have the content page to start on an odd page and again have the page number on the empty page before the content page on the left side. So far, I have:
\documentclass[10pt,twoside]{book}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{etoolbox}
\usepackage{amssymb}
\usepackage{bbold}
\usepackage{amsmath}
\usepackage{bm}
\usepackage{fancyhdr}
\usepackage[PetersLenny]{fncychap}
\usepackage{courier}
\usepackage[a4paper,inner=4cm,outer=1.5cm]{geometry}
\usepackage[nottoc]{tocbibind}
\usepackage[font=small,format=plain,labelfont=bf,up,]{caption}
\usepackage{flafter}
\let\origdoublepage\cleardoublepage
\newcommand{\clearemptydoublepage}{%
\clearpage
{\pagestyle{plain}\origdoublepage}%
}
\newcommand{\tstamp}{\today}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{#1}}
\lhead[\fancyplain{}{\thepage}] {\fancyplain{}{\rightmark}}
\chead[\fancyplain{}{}] {\fancyplain{}{}}
\rhead[\fancyplain{}{\rightmark}] {\fancyplain{}{\thepage}}
\lfoot[\fancyplain{}{}] {\fancyplain{\tstamp}{\tstamp}}
\cfoot[\fancyplain{\thepage}{}] {\fancyplain{\thepage}{}}
\rfoot[\fancyplain{\tstamp} {\tstamp}] {\fancyplain{}{}}
\fancypagestyle{plain}{%
\fancyhf{} % clear all header and footer fields
\fancyhead[RO,RE]{\thepage} %RO=right odd, RE=right even
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}}
\let\cleardoublepage\clearemptydoublepage
\begin{document}
blabla
\end{document}
To be honest, I don't know what any of the code means (mainly used Google, this forum and trial/error to get it like that). But I was wondering if anybody knows the answers to the two problems I have?
This is an edit to clarify what my specifications are:
Ok, I would like to have on all even pages, the page number on the left top side and on all the odd pages the page number on the right side. Furthermore, I would like to have the chapter name on the right side of all the even \textit{after}
the start of the first chapter (i.e. after the \mainmatter
command and the section title on the left side of odd pages. So to clarify, all the pages with roman number should only have the page number, but once the first chapter after the table of content has started I would like to have the chapter name on the even pages and section name on the odd pages.