The sample code at the bottom of this post results in the following page order:
- title page
- metadata page
- table of contents
- blank page (seems to be continued from the table of contents)
- chapter
I'm really scratching my head about why the blank page (4) shows up. As best I can tell, it seems to be related to a \vspace*{\fill} command I placed on page (2). But this is confusing to me. Doesn't that come before the table of contents?
I want to keep the \vspace*{\fill} because (in the actual book I'm typesetting) I'm using it to vertically center the content on the metadata page.
What's going on?
\documentclass[12pt, oneside]{book}
%%%%%%%%
% Headers and footers.
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead[LE,RO]{\thepage}
\fancyhead[LO,RE]{\textit{\nouppercase{\leftmark}}}
\fancyfoot[C]{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\title{Sample title}
\author{Sample author}
\date{Sample date}
\begin{document}
\frontmatter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Title page.
\begin{titlepage}
Sample title page.
\end{titlepage}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Metadata page.
\thispagestyle{empty}
\topskip0pt
\vspace*{\fill}
Sample metadata page.
\vspace*{\fill}
{
\setcounter{tocdepth}{0}
\tableofcontents
}
\mainmatter
\chapter{Sample chapter title}
Sample chapter text.
\end{document}
\topskip0pt? Remove that and things turn back to normal... – Werner Jan 06 '21 at 01:17eso-pic. It depends on what your metadata page looks like. – Werner Jan 06 '21 at 05:19{}around the metadata page also gets the job done. – Elliott Slaughter Jan 06 '21 at 06:59\parbox[c][\textheight][c]{...}\topskipisn't used since the height of the\parboxis larger. – John Kormylo Jan 06 '21 at 14:19