-
Notifications
You must be signed in to change notification settings - Fork 10
/
chapter-toc.tex
28 lines (24 loc) · 2.63 KB
/
chapter-toc.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
% ██████████████████████████████████████████████
% █░░░░░░░░░░░░░░█░░░░░░░░░░░░░░█░░░░░░░░░░░░░░█
% █░░▄▀▄▀▄▀▄▀▄▀░░█░░▄▀▄▀▄▀▄▀▄▀░░█░░▄▀▄▀▄▀▄▀▄▀░░█
% █░░░░░░▄▀░░░░░░█░░▄▀░░░░░░▄▀░░█░░▄▀░░░░░░░░░░█
% █████░░▄▀░░█████░░▄▀░░██░░▄▀░░█░░▄▀░░█████████
% █████░░▄▀░░█████░░▄▀░░██░░▄▀░░█░░▄▀░░█████████
% █████░░▄▀░░█████░░▄▀░░██░░▄▀░░█░░▄▀░░█████████
% █████░░▄▀░░█████░░▄▀░░██░░▄▀░░█░░▄▀░░█████████
% █████░░▄▀░░█████░░▄▀░░██░░▄▀░░█░░▄▀░░█████████
% █████░░▄▀░░█████░░▄▀░░░░░░▄▀░░█░░▄▀░░░░░░░░░░█
% █████░░▄▀░░█████░░▄▀▄▀▄▀▄▀▄▀░░█░░▄▀▄▀▄▀▄▀▄▀░░█
% █████░░░░░░█████░░░░░░░░░░░░░░█░░░░░░░░░░░░░░█
% ██████████████████████████████████████████████
\tableofcontents
% Manually break the page before introduction in non-print version. Non-print PDF TOC includes sub-sub-sections as well therefore spreads much more pages and, more crutially, ends on odd page so introduction chapter that follows would begin on even one.
% Note: when new sub/sections are added in the future that cause TOC to spread onto even page, this whole \ifdefined can be deleted (or commented out to leave it for the future). There's probably automated way to ensure chapters always start on odd page, but nothing I tried worked (I think part of the problem lies in the fact that odd/even is reversed in this document due to how lulu expects PDF to be formatted)
\ifdefined\isPDF
% e-book doesn't require empty line
\else
% printed book requires an empty line
\pagebreak
\IntentionallyEmpty
\pagebreak
\fi