\documentclass[12pt, a4paper, oneside]{book}


\usepackage{fancyhdr, ifpdf}
\pagestyle{fancyplain}

%% some redefination of the headers and footers
\renewcommand{\chaptermark}[1]%
                 {\markboth{#1}{}}
\renewcommand{\sectionmark}[1]%
                 {\markright{\thesection\ #1}}
\lhead[\fancyplain{}{\thepage}]%
      {\fancyplain{}{\rightmark}}
\rhead[\fancyplain{}{\leftmark}]%
      {\fancyplain{}{\thepage}}
\cfoot{}
\sloppy

\ifpdf
   \usepackage[pdftex]{graphicx}
   \pdfinfo {
      /Title (Demo)
      /Subject (Documentation)
      /Author (Ingo H. de Boer)
      /Keywords (WinShell, Demo)
   }
\else
   \usepackage{graphicx}
\fi


%% start the show...

\begin{document}

\author{Ingo H. de Boer}
\title{Demo}
\maketitle

\pagenumbering{roman}

\setcounter{page}{1}
\tableofcontents
\listoffigures
\listoftables
\pagenumbering{arabic}
\include{intro}
\include{winshell}
\include{image}
\include{math}
\include{last}

\begin{appendix}
\appendix
\include{appx}
\end{appendix}

\addcontentsline{toc}{chapter}{Bibliography}

\bibliographystyle{plain}
\thispagestyle{empty}
\bibliography{demo}

\end{document}






