TransWikia.com

Combine title page and contents on one page

TeX - LaTeX Asked on September 27, 2021

Is it possible to have the Table of Contents follow immediately after the Title Page in documentclass{book}?

In other words: print the title{} and author{} (and preferably not the date{}), and right below that on the same page, the tableofcontents — without a page break, and without a page number.

Bonus points if

  • (a) the text content, i.e., Chapter One, begins on page 3, since chapters should begin on odd pages;
  • and (b) Page two can optionally include copyright notice, etc., but if not there should be no printing on that page at all.

MWE is below. Sorry it isn’t very minimal. (Please be gentle. I’m having a hard time wrestling LaTeX to do what I want.)

documentclass[notitlepage,draft]{book}
usepackage{multicol} 
usepackage{fontspec} 
usepackage[fontsize=10pt,baseline=12pt]{grid} 
setlength{columnsep}{1.5em}
usepackage[top=2cm, left=3cm,right=2cm]{geometry} 
setmainfont{Alegreya}  % yes, you can print in non-default fonts!
title{This Is The Titleof theAdequate Book of LaTeX}
author{MacIntyre W. Hovermale, Jr., Esq.}
usepackage{titling}  % remove date and spacing around date:
predate{}
date{}
postdate{}
usepackage{lipsum}
usepackage{fancyhdr}  %% controls headers/footers, page numbers
pagestyle{fancy}
fancyhf{} % clear all header and footer fields
fancyhead[LE,RO]{thepage}
fancyhead[CE]{TEST~~~EVEN~~~PAGE~~~HEADER}
fancyhead[CO]{chaptername} 
usepackage[ragged,hang]{footmisc}
usepackage[colorlinks,linktoc=all]{hyperref}  %% make contents entries clickable 

begin{document}

maketitle 
 
clearpage{pagestyle{empty}cleardoublepage}  %% no header on blank left page; will clearing get TOC to start immediately? ans: no, it just restores lopsided header on blank p. 2.

tableofcontents

%%%%% CHAPTER ONE %%%%%
chapter*{chapter one} 
label{ch:Chapter_One}
addcontentsline{toc}{chapter}{protectnumberline{}Chapter one}  %% add unnumbered chap. to TOC
lipsum[1-2]

end{document}

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP