Hi!

I got some page formatting problems (documentclass: book). I'm using a right/left aligned page format with arabic numbers and the Section name and a horisontal line in the header. Unfortunately, it seems that \Chapter{} is giving me some troubles. The pagenumber at the first of a chapter is centered instead of being right/left formatted, and thereafter the rest of the document is no longer correctly right/left formatted. What's wrong? And how do I secure, that a new chapter is always started on the right-handed page?

Thanks!
Morten

----------------------------------------------------------------------
Here's the formatting codes:

\documentclass[titlepage,a4paper,12pt,twoside]{book}

\setlength{\textwidth}{426pt} \setlength{\textheight}{600pt}
\setlength{\footskip}{40pt} \setlength{\topmargin}{0pt}
\setlength{\headheight}{20pt} \setlength{\headsep}{30pt}
\setlength{\oddsidemargin}{20pt} \setlength{\evensidemargin}{0pt}

%Here goes the rest of my preamble

\begin{document} \pagestyle{plain} \pagenumbering{Roman}

\pagestyle{fancy}
\renewcommand{\headrulewidth}{0.0pt}
\renewcommand{\footrulewidth}{0.0pt}
\renewcommand{\sectionmark}[1]{%
\markboth{#1}{}}
\fancyhf{}
\fancyfoot[LE,RO]{\thepage}
\fancyfoot[RO,LE]{\thepage}

%Content with no header and roman pagenumbering

\clearpage
\pagenumbering{arabic}
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.0pt}
\renewcommand{\sectionmark}[1]{%
\markboth{#1}{}}
\fancyhf{}
\fancyfoot[LE,RO]{\thepage}
\fancyfoot[RO,LE]{\thepage}
\fancyhead[LE,RO]{\leftmark}
\fancyhead[RO,LE]{\leftmark}

\chapter{XXX}

%The rest of the content with header and arabic pagenumbering