-
Notifications
You must be signed in to change notification settings - Fork 2
/
brisk.tex
166 lines (144 loc) · 4.5 KB
/
brisk.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
% To compile:
% pdflatex brisk.tex
% makeindex brisk.idx
% pdflatex brisk.tex
%
% The content and cover files, explained:
% - cover.xcf: Gimp file of full cover (front/back/spine)
% - cover.pdf: full cover (front/back/spine)
% - brisk_cover.xcf DOES NOT EXIST (probably should)
% - brisk_cover.pdf just front
% - blank.pdf a blank PDF page
% - brisk.pdf: content only, entire book
% - brisk_wcover.pdf: front cover and content, for electronic posting.
% To make this:
% $ pdftk brisk_cover.pdf blank.pdf brisk.pdf output brisk_wcover.pdf
%
% version 1.4 cover: left spine at 6.12in, right at 6.64in. (Total: .52in)
% version 2.0 cover: left spine at 6.109in, right at 6.651in. (Total: .542in)
% version 2.0 has 254 pages; version 1.4 had 236.
%
\documentclass[11pt]{memoir}
\usepackage[monochrome]{color}
\usepackage{paralist}
\usepackage{array} % For double-column exercises.
\usepackage{longtable} % For double-column exercises.
\usepackage[normalem]{ulem} % For strikethrough.
\usepackage{enumitem} % To "resume" enumerated lists.
\usepackage{epsfig}
\usepackage{afterpage}
\usepackage{multicol}
\usepackage{multirow}
\usepackage{fancybox}
\usepackage{imakeidx}
\usepackage{footnote}
\makesavenoteenv{tabular}
\usepackage[hidelinks]{hyperref}
%%%%% TikZ and fam
% TikZ and all the sub-libraries therein, for 'native' pictures
% Consult the following for reference/information:
% https://en.wikipedia.org/wiki/PGF/TikZ
% https://tikz.dev/
\usepackage{tikz}
% for trees
\usetikzlibrary{graphdrawing}
% graph drawing library: trees, layered
\usegdlibrary{trees,layered}
% for 'ellipse' nodes, and for 'sign' labels
\usetikzlibrary{shapes.geometric,shapes.symbols}
% for graph syntax
\usetikzlibrary{graphs}
% for graph edge weights: 'A --["weight"] B'
\usetikzlibrary{quotes}
% for mathematical evaluations
\usetikzlibrary{math}
% for positioning using "left of __" etc.
\usetikzlibrary{positioning}
% for fitting things into others
\usetikzlibrary{fit}
% for circular graphs
\usegdlibrary{circular}
%%%%% end of TikZ and fam
\usepackage[scale=3]{ccicons}
%\usepackage{enumerate}
% Lulu.com
%\setstocksize{23.389cm}{15.593cm}
%\settrimmedsize{\stockheight}{\stockwidth}{*}
%\settrims{0pt}{0pt}
% Blurb.com
\setstocksize{9.25in}{6.125in}
\settrimmedsize{9in}{6in}{*}
\settrims{.125in}{.125in}
\setlxvchars
\settypeblocksize{*}{\lxvchars}{1.618}
%\setlrmargins{*}{*}{.618}
\setlrmargins{*}{1.2cm}{.618}
% Lulu.com
%\setulmargins{110pt}{*}{*}
% Blurb.com
\setulmargins{75pt}{*}{*}
\setheaderspaces{*}{*}{*}
\checkandfixthelayout
\makeindex
\newenvironment{custommargins}[2]%
{\addtolength{\leftskip}{#1}\addtolength{\rightskip}{#2}}{\par}
%% Set left margin - The default is 1 inch, so the following
%% command sets a 2-inch left margin.
%\setlength{\oddsidemargin}{1in}
%\setlength{\evensidemargin}{0in}
%% Set width of the text - What is left will be the right margin.
%% In this case, right margin is 8.5in - 1.25in - 6in = 1.25in.
%\setlength{\textwidth}{5.5in}
%
%% Set top margin - The default is 1 inch, so the following
%% command sets a 0.75-inch top margin.
%\setlength{\topmargin}{-.25in}
%
%% Set height of the text - What is left will be the bottom margin.
%% In this case, bottom margin is 11in - 0.75in - 9.5in = 0.75in
%\setlength{\textheight}{7.25in}
\usepackage{amsmath,amsthm,amsfonts,amssymb,latexsym}
\setlength{\parindent}{0pt}
\setlength{\baselineskip}{1.5pt}
\setlength{\parskip}{6pt}
\begin{document}
\title{A Cool Brisk Walk\\Through Discrete Mathematics\\{\small version
2.2.1}}
\author{Stephen Davies, Ph.D.\\Computer Science Department\\University of Mary Washington}
\date{}
\maketitle
\thispagestyle{empty}
\include{copyright}
\frontmatter
\pagebreak
\renewcommand{\contentsname}{Contents at a glance}
\setcounter{tocdepth}{0}
\tableofcontents
\vspace{.6in}
\begin{center}
\small
Also be sure to check out the forever-free-and-open-source instructional videos
that accompany this series, at \url{www.allthemath.org}!
\end{center}
\include{preface}
\include{ack}
\mainmatter
\include{intro}
\include{sets}
\include{setsEx}
\include{relations}
\include{relationsEx}
\include{probability}
\include{probabilityEx}
\include{structures}
\include{structuresEx}
\include{counting}
\include{countingEx}
\include{numbers}
\include{numbersEx}
\include{logic}
\include{logicEx}
\include{proof}
\backmatter
\printindex
\end{document}