I wrote a large book of 2000 pages, so I have to split it into 4 or 5 volumes of about 500 pages (250 paper sheets), for printing and paper binding issues. Each volume would have its own front title page, designed from the code below. It would be usefull to add a Partial Table of Content on it (the true and complete ToC is inside the first volume of the book). Of course, each page number would be added by hand to these "fake ToC", since the title pages are done separately from the main document. I would list only the chapters in these fake partial ToC, since they'll be shown on a single page.
So how would you suggest to build such "partial fake ToC", with the code below, in place of the dumb text part?
\documentclass[letterpaper]{book}
\usepackage[T1]{fontenc}
\usepackage{microtype}
\usepackage{libertine}
\renewcommand*\familydefault{\sfdefault}
\usepackage[utf8]{inputenc}
\usepackage[french]{babel}
\usepackage{anysize}
\marginsize{1.5in}{1in}{0.5in}{0.5in}
\usepackage[x11names]{xcolor}
\definecolor{backgroundcolor}{RGB}{150, 170, 170}
\definecolor{andcolor}{RGB}{230, 255, 255}
\definecolor{subtitle}{RGB}{230, 255, 255}
\usepackage{graphicx}
\usepackage{afterpage}
\usepackage{tikz}
\usetikzlibrary{calc}
\newcommand*{\maintitle}{\begingroup
\pagecolor{backgroundcolor}
\raggedright
{\hspace{-4pt}\fontsize{52}{0}\selectfont{Title 1}}
\vspace*{2\baselineskip}
\raggedleft
{\textcolor{subtitle}{\fontsize{45}{0}\selectfont {Part 1 of 5}}}
\vspace*{3\baselineskip}
\raggedleft
{\huge Author}
\vfill
\endgroup}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\begin{titlepage}
\begin{tikzpicture}[remember picture, overlay]
\draw[line width = 1in,color = white] ($(current page.north west) + (0.25in,0.25in)$) rectangle ($(current page.south east) + (0.25in,-0.25in)$);
\draw[line width = 0.25pt,color = black] ($(current page.north west) + (0.75in,-0.25in)$) rectangle ($(current page.south east) + (-0.25in,0.25in)$);
\draw[line width = 1pt,color = white] ($(current page.north west) + (1in,-0.5in)$) rectangle ($(current page.south east) + (-0.5in,0.5in)$);
\end{tikzpicture}
\maintitle
Dumb text dumb text dumb text dumb text dumb text dumb text dumb text dumb text dumb text dumb text dumb text dumb text dumb text dumb text dumb text dumb text.
\end{titlepage}
\end{document}
Preview of what this code is doing, and the fake ToC emplacement shown in red:
<filename>.toc
file generated by your document, chop it up appropriately, and paste it in? This seems to be a good time to actually call\contentsline
by hand instead of leaving it in the background.<filename>.toc
, copy the lines that read\contentsline{chapter}{....}
for those chapters, and paste them into where "dumb text" is..toc
. Sure, it's overwritten each time you compile, but it should be there once you're done, otherwise you won't have a ToC at all. (2) Do you compile each volume separately, or as a whole?pdflatex
, you should be able to bypass whatever cleanup action your compilation app is using. (In fact, if the.aux
files are kept, you should be able to just recover the.toc
file with one pass.)