[Tex/LaTex] Interference of Geometry and counter of the page number

geometrypage-numberingtexmaker

I'm having troubles with the geometry package, it seems that every time that I reset the pagenumber to one, the geometry package treats it like it's the first page of the document. Now this is rather inconvenient since I use the geometry package to get a bindingoffset.

So each time I rest my pagenumber to 1, the bindingoffset gets set to the left (even if it isn't the first page, or any uneven page).

I also checked and it's not because of the titlepage-environment that the error occurs (notice that I also reset the page numbering for my bibliography).

Warning, there is a bibliography in there, so be aware of that while compiling (i left it in the document to show that it also does this error at the end).

supplementary (related) question: Is there a way to reset the internal counter of the geometry package ? To force geometry to treat even numbered pages as right handed ones and uneven numbered pages as left handed ones starting from a given point in the tex-file ?

\documentclass[a4paper,11pt]{article}
\author{Some author}
\title{Some title}
\date{Some date}

\usepackage[twoside,bindingoffset=1cm,a4paper,hmargin=2cm,vmargin=2cm,includeheadfoot]{geometry}
\usepackage[english]{babel}
\usepackage{lipsum}

\begin{document}
\pagenumbering{Roman}
\begin{titlepage}
\maketitle
\begin{abstract}
\lipsum[1-3]
\end{abstract}
\tableofcontents
\addtocontents{toc}{~\hfill\textbf{Page}\par}
\thispagestyle{empty}
\end{titlepage}
\pagenumbering{arabic}
\setcounter{page}{1}

\section{The Section Manace}
\lipsum[5-10]
\section{Attack of the Sections}
\lipsum[11-17]
\section{Revenge of the Section}
\lipsum[18-24]
\section{A New Section}
\lipsum[25-30]
\section{The Section Strikes Back}
\lipsum[31-32]
\section{Return of the Section}
\lipsum[33-36]

\newpage
\setcounter{page}{1}
\pagenumbering{roman}

\bibliographystyle{unsrt}
\bibliography{LGT}

\end{document}

Best Answer

If you really want to ignore time honored conventions, according to which the right hand pages are odd numbered, just do the following:

\pagenumbering{Roman}

\begin{titlepage}
\maketitle
\begin{abstract}
\lipsum[1-3]
\end{abstract}
\tableofcontents
\addtocontents{toc}{~\hfill\textbf{Page}\par}
\thispagestyle{empty}
\end{titlepage}

\clearpage % always clear the page before \pagenumbering
\pagenumbering{arabic}

\setcounter{page}{0}
\renewcommand{\thepage}{\the\numexpr\value{page}+1\relax}

\section{The Section Manace}