-
Notifications
You must be signed in to change notification settings - Fork 9
/
main.tex
275 lines (213 loc) · 7.37 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
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
\documentclass[usletter,11pt,english,oneside,onecolumn,final,openany]{report}
%Primary packages
\usepackage{fancyvrb}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage[pdftex]{graphicx}
% Useful packages:
% Advanced mathematical formulas and symbols
% -------------------------------------
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{bm}
% Footnotes
% -------------------------------------
\usepackage[stable,splitrule]{footmisc}
% Color management package
% -------------------------------------
\usepackage[usenames,dvipsnames]{xcolor}
% Control line spacing
% -------------------------------------
% putting this between footmisc and hyperref seemed to fix broken footnote links
\usepackage{setspace}
\AtBeginDocument{\let~=\nobreakspace}
\spacing{1.1}
% Advanced crossreferencing commands
% -------------------------------------
% Default settings:
% \usepackage[]{hyperref}
% Disable link coloring:
% \usepackage[colorlinks=false]{hyperref}
% Enable link coloring with personalized colors, make page number (not text) be link on the Table Of Contents (needs color package)
\PassOptionsToPackage{hyphens}{url} %for url linebreaks
\usepackage[colorlinks=true, linkcolor=BlueViolet, citecolor=BlueViolet, urlcolor=BlueViolet,linktocpage=true]{hyperref}
%% more footnote stuff
\usepackage{footnotebackref}
\let\oldFootnote\footnote
\newcommand\nextToken\relax
\renewcommand\footnote[1]{%
\oldFootnote{#1}\futurelet\nextToken\isFootnote}
\newcommand\isFootnote{%
\ifx\footnote\nextToken\textsuperscript{,}\fi}
% note for tables (with tabularx): if all table footnotes can't fit on the same page as the table, then they will all be shoved to the next page (seems like a bug); solution: use '\newpage' to put the table on a new page so footnotes fit (won't work if there are just too many footnotes)
% Flexible interface to page dimensions
% -------------------------------------
% Default settings:
% \usepackage[]{geometry}
% Set specific margins:
\usepackage{marginnote}
\usepackage[outer=2.62cm,inner=2.62cm,top=3cm,bottom=2.75cm, marginparwidth=2.1cm, marginparsep=.35cm]{geometry}
%Tree drawing
\usepackage{tikz}
\usetikzlibrary{trees, arrows}
\usepackage{pgfplots}
\pgfplotsset{compat=1.15}
\usepackage[edges,linguistics]{forest}
% Tabular package extensions
% -------------------------------------
% \usepackage{array}
% \usepackage{multirow}
% Modify chapter level headings
% -------------------------------------
\usepackage[Sonny]{fncychap}
\usepackage{fancyhdr}
\fancyhead{}
\fancyfoot{}
\rhead[\small \leftmark]{\small \thepage}
\lhead[\small \thepage]{\small \leftmark}
\setlength{\headheight}{13.2pt}
\ChRuleWidth{1pt}
\ChNameAsIs
\ChNameUpperCase
\ChNameVar{\Large\bf}
\ChNumVar{\Huge}
\ChTitleVar{\LARGE}
% Modify appendix and add subappendices environments
% -------------------------------------
\usepackage{appendix}
% Paragraph indentation and skip
% -------------------------------------
\setlength{\parindent}{0pt}
\setlength{\parskip}{1.7ex plus 0.5ex minus 0.8ex}
\usepackage{xspace}
\newcommand\nd{\textsuperscript{nd}\xspace}
\newcommand\rd{\textsuperscript{rd}\xspace}
\newcommand\rds{\textsuperscript{rds}\xspace}
\newcommand\nth{\textsuperscript{th}\xspace}
\newcommand\nths{\textsuperscript{ths}\xspace}
% List spacing
\usepackage{enumitem}
\setlist[itemize]{topsep=0pt}
\newcommand{\listspace}{-.4em}
% Separate document into parts
\usepackage{titlesec}
% Copyright and Restricted tags
\usepackage{textcomp}
%$^{\tiny{\textregistered}}$
%$^{\tiny{\textcopyright}}$
% Advanced tables
\usepackage{ltablex}
% Figure and Table reference numbering to be ChapterNum-FigNum
% Doesn't work for trees (yet?) so trees should be called Trees/Diagrams instead of Figures
\renewcommand\thetable{\thechapter-\arabic{table}}
\renewcommand\thefigure{\thechapter-\arabic{figure}}
% Line numbering for drafts only
%\usepackage[pagewise,modulo,displaymath,mathlines]{lineno}
%\linenumbers
% ___________________________________________________________________________________________________________
%
% PDF INFO
% ___________________________________________________________________________________________________________
\hypersetup{
pdftitle = {Mechanics of MobileCoin - First Edition},
pdfauthor = {koe, Kurt M. Alonso}
}
\begin{document}
%\maketitle
% ------ Title page ------------------------
\setlength{\abovedisplayskip}{0pt}
\setlength{\belowdisplayskip}{0pt}
\setlength{\abovedisplayshortskip}{0pt}
\setlength{\belowdisplayshortskip}{0pt}
\pagenumbering{roman}
\pagestyle{plain}
\thispagestyle{empty}
\mbox{}
\vspace{1cm}
\begin{center}
\includegraphics[width=3cm]{front/figures/mobilecoin_logo.pdf}
\end{center}
\vfill{}
{\par\centering \textsc{\huge Mechanics of MobileCoin: First Edition}\par}
\bigskip \bigskip
{\par\centering \textsc{\LARGE exploring the foundations of a private digital currency}\par}
\bigskip
%{\par\centering \textsc{\LARGE Published \today{} (v1.0.0)}\par}
{\par\centering \textsc{\LARGE \today{}, v1.0.0}\par}
%{\par\centering \textsc{\LARGE \today{}, Preview (10/11) v0.0.39}\par}
\bigskip
{\par\centering \textsc{\large koe\footnote{ukoe@protonmail.com}\footnote{Author `koe' worked on this document as part of a private contract with, then as an employee of, MobileCoin, Inc.}}, Kurt M. Alonso\footnote{kurt@oktav.se}
\par}
\vfill{}
\begin{center}
\begin{minipage}[t]{6.43in}
\textbf{License}: `Mechanics of MobileCoin: First Edition' is released into the public domain.
\end{minipage}
\end{center}
\vspace{0cm}
% ------ Abstract ------------------------
\newpage
\pagestyle{empty}
\begin{center}
\vspace*{\fill}%\vspace*{3.5cm}
{\LARGE \bfseries Abstract}
\end{center}
\vspace{0.5cm}
\begin{center}
\begin{minipage}{5.5in}
\begin{center} \vrule width 4.5in height 0.4pt \end{center}
\parindent=0pt
\include{front/abstract}
\begin{center} \vrule width 4.5in height 0.4pt \end{center}
\end{minipage}
\vspace*{\fill}
\end{center}
% ------ Table of contents and figures ---------
\newpage
\pagestyle{plain}
\tableofcontents
% ___________________________________________________________________________________________________________
%
% CONTENT
% ___________________________________________________________________________________________________________
\newpage
\pagenumbering{arabic}
\pagestyle{fancy}
% -------- Chapters ----------------------------
\if 11
\include{content/introduction}
\part{Essentials}
\include{content/basicConcepts}
\include{content/advancedSchnorr}
\include{content/addresses}
\include{content/commitments}
\include{content/membershipProofs}
\include{content/transactions}
\include{content/enclave}
\include{content/blockchain}
\include{content/consensus}
\part{Extensions}
\include{content/fog}
%%\include{content/txKnowledgeProofs}
%%\include{content/multisig}
%%\include{content/escrowedMarket}
\fi
% ___________________________________________________________________________________________________________
%
% BACKMATTER
% ___________________________________________________________________________________________________________
% -------- Bibliography -----------------------
\addcontentsline{toc}{chapter}{Bibliography}
{\footnotesize
\bibliographystyle{plain}
\bibliography{back/references.bib}
}
% -------- Appendix ---------------------------
\if 11
\addappheadtotoc
\appendixpage
\include{content/appendix}
\fi
% -------- Last page -------------------------
\end{document}