-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.tex
247 lines (159 loc) · 7.33 KB
/
main.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% CONWAY'S GAME OF LIFE BOOK
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[11pt,twoside]{book}
% Comment out the following line if the book is to be viewed on a computer in PDF format. Otherwise, leave it uncommented to make a copy for printing.
%\newcommand*{\FORPRINTING}{}
\input{structure}
\usepackage[straightquotes]{newtxtt}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% LIST OF PREFERRED NAMES OF FORUM USERS
%%
%% A for Awesome: praosylen
%% AbhpzTa: Luka Okanishi
%% AlephAlpha: ?? (ask)
%% BlinkerSpawn: Charlie Neder
%% Bullet51: ?? (ask)
%% calcyman: Adam P. Goucher
%% chris_c: Chris Cain
%% codeholic: Ivan Fomichev
%% Entity Valkyrie: ?? (ask)
%% Extrementhusiast: Martin Grant
%% Freywa: Jeremy Tan
%% FWKnightship: ?? (ask)
%% glider_rider: Nico Brown
%% Goldtiger997: ?? (ask)
%% Hdjensofjfnen: Justin Tang
%% hotdogPi: David Raucci
%% ihatecorderships: Kalan Warusa
%% iNoMed: iNoMed
%% Jormungant: Louis-François Handfield
%% kazyan: Tanner Jacobi
%% Macbi: Oscar Cunningham
%% moebius: Tim Coe
%% mtve: mtve
%% muzik: Connor Steppie
%% Rocknlol: Daniel Mouscher
%% Saka: ?? (ask)
%% Scorbie: Dongook Lee
%% simeks: Simon Ekström
%% simsim314: Michael Simkin
%% Sokwe: Matthias Merzenich
%% thunk: Maia Thunkies
%% wildmyron: Arie Paap
%% zdr: zdr
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
%----------------------------------------------------------------------------------------
% TITLE PAGE
%----------------------------------------------------------------------------------------
\frontmatter
\ifdefined\FORPRINTING
\else
% Only show title page if this is a PDF. Don't show it for printed copy.
\begingroup
\thispagestyle{empty}
\vspace*{0.3in}
\centering\textbf{\textsf{{\fontsize{38}{45}\selectfont Conway's Game of Life}}} \\[0.3in]
\textbf{\textsf{{\fontsize{24}{40}\selectfont Mathematics and Construction}}} \\[1.2in]
\begin{tikzpicture}[remember picture,overlay]
\draw[black!20,line width=8pt,rounded corners=1.6pt] (-1.6,0) rectangle (1.6,-3.2); % top center
\node[inner sep=0pt] (glider_loop) at (0,-1.6) {\embedlink{p43_glider_loop}{\includegraphics[width=3.2cm]{cover/glider_loop.png}}};
\draw[black,ultra thick,rounded corners=1.6pt] (-1.6,0) rectangle (1.6,-3.2);
\draw[black!20,line width=8pt,rounded corners=1.6pt] (1.76,-3.36) rectangle (4.96,-6.56); % middle right
\node[inner sep=0pt] (pi_calc) at (3.36,-4.96) {\embedlink{pi_calc}{\includegraphics[width=3.2cm]{cover/pi_calc.png}}};
\draw[black,ultra thick,rounded corners=1.6pt] (1.76,-3.36) rectangle (4.96,-6.56); % middle right
\draw[black!20,line width=8pt,rounded corners=1.6pt] (1.76,-6.72) rectangle (4.96,-9.92); % bottom right
\node[inner sep=0pt] (gosper) at (3.36,-8.32) {\embedlink{gosper_glider_gun}{\includegraphics[width=3.2cm]{cover/gosper.png}}};
\draw[black,ultra thick,rounded corners=1.6pt] (1.76,-6.72) rectangle (4.96,-9.92); % bottom right
\draw[black!20,line width=8pt,rounded corners=1.6pt] (-1.6,-6.72) rectangle (1.6,-9.92); % bottom center
\node[inner sep=0pt] (copperhead) at (0,-8.32) {\embedlink{copperhead}{\includegraphics[width=3.2cm]{cover/copperhead.png}}};
\draw[black,ultra thick,rounded corners=1.6pt] (-1.6,-6.72) rectangle (1.6,-9.92); % bottom center
\draw[black!20,line width=8pt,rounded corners=1.6pt] (-4.96,-6.72) rectangle (-1.76,-9.92); % bottom left
\node[inner sep=0pt] (herschel) at (-3.36,-8.32) {\embedlink{herschel_track}{\includegraphics[width=3.2cm]{cover/herschel.png}}};
\draw[black,ultra thick,rounded corners=1.6pt] (-4.96,-6.72) rectangle (-1.76,-9.92); % bottom left
\end{tikzpicture}
\vspace*{5.55in}\textbf{\textsf{{\fontsize{16}{40}\selectfont Nathaniel Johnston} $\quad$ and $\quad$ {\fontsize{16}{40}\selectfont Dave Greene}}}
\vfill
\endgroup
\newpage
\fi
%----------------------------------------------------------------------------------------
% COPYRIGHT PAGE
%----------------------------------------------------------------------------------------
~\vfill
\thispagestyle{empty}
\noindent Copyright \copyright\ 2022 Nathaniel Johnston and Dave Greene\\ % Copyright notice
% \noindent \textsc{Published by Publisher}\\ %
\noindent \textsc{conwaylife.com/book}\\[0.2cm] % URL
\noindent \includegraphics[width=4cm]{images/isbn.pdf}
\clearpage
% DEDICATION
\vspace*{1.5in}
\begin{center}
\textbf{\large To John Horton Conway}\\For giving us 50 years of Life.
\end{center}
%----------------------------------------------------------------------------------------
% TABLE OF CONTENTS
%----------------------------------------------------------------------------------------
%\usechapterimagefalse % If you don't want to include a chapter image, use this to toggle images off - it can be enabled later with \usechapterimagetrue
\chapterimage{cover/toc.jpg} % Table of contents heading image
\setcounter{tocdepth}{1}
\pagestyle{empty} % No headers
\tableofcontents % Print the table of contents itself
\cleardoublepage % Forces the first chapter to start on an odd page so it's on the right
\pagestyle{fancy} % Print headers again
% The Preface section needs a custom title-line header so it doesn't start with "Chapter 0."
\renewcommand{\chaptermark}[1]{\markboth{\sffamily\normalsize\bfseries Preface}{}} % Chapter text font settings
\include{preface}
\mainmatter
% Restore the standard chapter title-line header
\renewcommand{\chaptermark}[1]{\markboth{\sffamily\normalsize\bfseries\chaptername\ \thechapter.\ #1}{}} % Chapter text font settings
%----------------------------------------------------------------------------------------
% PART 1: CLASSICAL TOPICS
%----------------------------------------------------------------------------------------
\part{Classical Topics}
\include{early_life}
\include{still_lifes}
\include{oscillators}
\include{spaceships}
%----------------------------------------------------------------------------------------
% PART 2: CIRCUITRY AND LOGIC
%----------------------------------------------------------------------------------------
\part{Circuitry and Logic}
\include{glider_synthesis}
\include{periodic_circuits}
\include{stationary_circuits}
\include{glider_guns}
%----------------------------------------------------------------------------------------
% PART 3: CONSTRUCTIONS
%----------------------------------------------------------------------------------------
\part{Constructions}
\include{universal_computation}
\include{self_support_spaceship}
\include{universal_construction}
\include{0e0p}
\part*{Appendices and Supplements}
\appendix
\renewcommand\chaptername{Appendix}
\include{appendix_math}
\include{appendix_extra}
\include{appendix_solutions}
%----------------------------------------------------------------------------------------
% BIBLIOGRAPHY
%----------------------------------------------------------------------------------------
\chapterimage{cover/bibliography}
\addcontentsline{toc}{chapter}{\textcolor{ocre}{Bibliography}}
\bibliographystyle{alpha}
\bibliography{bibliography}
%----------------------------------------------------------------------------------------
% INDEX
%----------------------------------------------------------------------------------------
\chapterimage{cover/index}
\cleardoublepage
\phantomsection
\setlength{\columnsep}{0.75cm}
\addcontentsline{toc}{chapter}{\textcolor{ocre}{Index}}
\printindex
%----------------------------------------------------------------------------------------
\end{document}