forked from btonks/calculus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcalc.tex
54 lines (48 loc) · 1.9 KB
/
calc.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
% (c) 2005 Ben Crowell, licensed under the Creative Commons
% Attribution-ShareAlike license,
% http://creativecommons.org/licenses/by-sa/1.0/
%
\documentclass{calc}
\pdfmapfile{=fullembed.map} % created by the script create_fullembed_file
% \let\ifpdf\relax % http://tex.stackexchange.com/questions/11414/package-ifpdf-error
% --------> this fails with TeX Live 2013, conflicts with xparse
\makeindex
\begin{document}
\VerbatimFootnotes
\renewcommand{\chapdir}{ch00}
\include{ch00/cover}
\include{ch00/frontmatter}
\begin{multicols}{2}
\tableofcontents
\setcounter{unbalance}{0}
\end{multicols}
\twocolumn
\formatchtoc{\Large}{}{4mm}
%========================= main matter =========================
\mainmatter
\sloppy
%-- I want the whole book numbered sequentially, arabic:
\pagenumbering{arabic}
\addtocounter{page}{6}
%========================= chapters =========================
\renewcommand{\chapdir}{ch01}\include{ch01/ch01}%
\renewcommand{\chapdir}{ch02}\include{ch02/ch02}%
\renewcommand{\chapdir}{ch03}\include{ch03/ch03}%
\renewcommand{\chapdir}{ch04}\include{ch04/ch04}%
\renewcommand{\chapdir}{ch05}\include{ch05/ch05}%
\renewcommand{\chapdir}{ch06}\include{ch06/ch06}%
\renewcommand{\chapdir}{ch07}\include{ch07/ch07}%
\renewcommand{\chapdir}{ch08}\include{ch08/ch08}%
\formatchtoc{\large}{\quad\contentspage}{4mm} % This has to go before the last chapter.
\renewcommand{\chapdir}{ch09}\include{ch09/ch09}%
\onecolumn
\setcounter{chapter}{0}
\renewcommand{\thechapter}{\Alph{chapter}}
\renewcommand{\chaptermark}[1]{\markboth{\textsf{\thechapter\hspace{\myfooterspace}#1}}{}}
\renewcommand{\chapdir}{ch99}\include{ch99/detours}%
\renewcommand{\chapdir}{ch99}\include{ch99/hwans}%
\renewcommand{\chapdir}{ch99}\include{ch99/photocredits}%
\renewcommand{\chapdir}{ch99}\include{ch99/further_reading}%
\renewcommand{\chapdir}{ch99}\include{ch99/reference}%
\printindex
\end{document}