I am using the book
document class and want to remove the blank pages it is adding after my title and after my TOC. I don't care to have any blank pages in this whole document actually, however these are the two places where blanks are present right now. I have tried to redefine /cleardoublepage as many Stackoverflow answers suggested, but I still see the new pages present and feel like I must be doing something wrong or missing a package.
Here is what my setup looks like currently for my tex:
\documentclass[12pt,oneside,openany]{book}
\usepackage[utf8]{inputenc}
\usepackage[margin=1in,includeheadfoot,asymmetric]{geometry}
\usepackage{makeidx}
\usepackage{fancyhdr}
\pagestyle{fancy}
\rhead{Assignment}
\lhead{}
\title{Assignment}
\author{Person One \and Person 2}
\begin{document}
\begingroup
\let\cleardoublepage\relax
\let\clearpage\relax
\maketitle
\endgroup
\frontmatter
\begingroup
\let\cleardoublepage\relax
\let\clearpage\relax
\tableofcontents
\endgroup
\mainmatter
\chapter{Report}
\end{document}
Best Answer
The extra page is generated by
\chapter
which is outside the group where\cleardoublepage
was redefined.A somewhat safer options is to use report class and play with the page numbers directly.