I wrote "a book" and now I want to print it. I though that I'll just use twoside
option and everything will be allright but there is always some problem...
Problems:
1) When I use twoside
option, the first page is "on the left side in the book". Should be "on the right side in the book", right?
Ok, so I added a blank page as the first page - now my "title page" is "on the right side in the book". It's a dirty solution, but it works. I'm using this "trick" further in the book. Is there any nicer solution?
2) The main problem I just can't find any solution to is with odd/even margins combined with start of pagenumbering. Let's see here:
On top left page the content ends. On the top right page, there is something like "First chapter page". On bottom left there is a blank page. So far so good (odd/even margins are on "the right side" and switching with every page). But on the bottom right page, there is a problem.
I want there first numbered page. But when I use \pagenumbering{arabic}
in the code, then the page with number 1 is always "on the left side in the book" - right margin is larger than the left and "alternating of margins" is broke in this case.
I read so many answers here on the forum (e.g. using \cleardoublepage
) but nothing worked for me. Any advice? I accept even some "dirty tricks" just to make it work.
TL;DR; Basically I want to force odd/even margins no matter what - page numbering, title pages, chapters etc. Just to make sure, that margins are switching with every new page.
My code:
\documentclass[11pt,a4paper,twoside]{report}
\usepackage[top=2.5cm,bottom=2cm]{geometry}
\usepackage[cp1250]{inputenc}
\usepackage[czech]{babel}
\usepackage{hyperref}
\usepackage{xcolor}
\usepackage{nameref}
\usepackage{showframe}
\usepackage{lipsum}
\usepackage{url}
\usepackage{graphicx}
\usepackage{float}
\bibliographystyle{plain}
\newcommand{\blankpage}{
\thispagestyle{empty}
\newpage
\mbox{}
\newpage
}
\begin{document}
\pagenumbering{gobble}
\blankpage
% TITLE PAGE
\begin{center}
\centering
{\huge\bfseries Author\par}
\vspace*{8cm}
{\Huge\bfseries Name\dots\par}
\vspace*{13cm}
{\huge\bfseries Year\par}
\newpage
\end{center}
\begin{flushleft}
\vspace*{8cm}
\noindent
{\bfseries Thanks to all ..\par}
\vspace*{13cm}
\noindent
ISBN: 12345678913543
\newpage
\end{flushleft}
\section*{Introduction}
\addcontentsline{toc}{chapter}{Introduction}
\lipsum[3]
\blankpage
% content
\tableofcontents
\chapter*{\centering \vspace*{8cm} \textbf{First part: lorem ipsum}}
\addcontentsline{toc}{chapter}{First part: lorem ipsum}
\newpage
\blankpage
\pagenumbering{arabic}% Remove page numbers (and reset to 1)
\section*{First Section of the book}
\addcontentsline{toc}{section}{First Section of the book}
\lipsum
.......
\end{document}
\cleardoublepage
before setting it back to 1).\includeonly
would have been perhaps harder if the link between page side and parity of page count was broken, but really parity of page counter should be enough you never (in left to right languages) want an odd numbered page on the left