-
Notifications
You must be signed in to change notification settings - Fork 7
/
bitcoin-textbook.tex
123 lines (97 loc) · 2.75 KB
/
bitcoin-textbook.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
\documentclass{tstextbook}
% for clickable links
%\usepackage{hyperref}
% for longtable (multiple pages)
\usepackage{longtable}
% for 256bit ascii font encoding
\usepackage[T1]{fontenc}
% for lowercase roman enumerations
\usepackage{enumerate}
% define colors
\usepackage{xcolor}
\definecolor{mygreen}{rgb}{0,0.6,0}
\definecolor{mygray}{rgb}{0.5,0.5,0.5}
\definecolor{mymauve}{rgb}{0.58,0,0.82}
\definecolor{darkblue}{rgb}{0.0, 0.0, 0.55}
% languages listings
\usepackage{listings}
% for greek in listings
\usepackage{textgreek}
\lstset{
literate={ε}{{\textepsilon}}1
}
% listing styles
\lstdefinestyle{Pseudomath}
{
basicstyle=\ttfamily,
mathescape
}
\lstdefinestyle{Bash}
{
language=bash,
showstringspaces=false,
%numbers=left,
%numberstyle=\color{mygray}\textit,
basicstyle=\footnotesize\ttfamily,
%keywordstyle=\color{mygreen},
%commentstyle=\color{mymauve},
%identifierstyle=\color{blue},
%stringstyle=\color{orange}
}
\lstdefinestyle{Python}
{
language=Python,
showstringspaces=false,
numbers=left,
numberstyle=\color{mygray}\textit,
basicstyle=\footnotesize\ttfamily,
keywordstyle=\color{mygreen},
commentstyle=\color{mymauve},
identifierstyle=\color{blue},
stringstyle=\color{orange}
}
\begin{document}
\tsbook{Bitcoin Programming}
{Konstantinos Karasavvas}
{}
{2022}
{}{}{}
{v0.4}
{}
% {Cover Designer}
% {2017}
% {xxxxx}{xxx--xx--xxxx--xx--x}{0.0}
% {Publisher}
% {City}
% Conventions
%---------------------------------------------------------------------------
% using emphbox to emphasize some text or a formula
% using note to NOTE something important
%---------------------------------------------------------------------------
%---------------------------------------------------------------------------
% Chapters
%---------------------------------------------------------------------------
% introduction
\include{preface}
\include{howbitcoinworks}
\include{p2pnetworking}
\include{forking}
\include{technicalfundamentals}
\include{keysandaddresses}
\include{scripting}
\include{scripting2}
\include{advancedtopics}
%---------------------------------------------------------------------------
% Appendices?
%---------------------------------------------------------------------------
%\include{installnode}
%---------------------------------------------------------------------------
% Bibliography
%---------------------------------------------------------------------------
\addcontentsline{toc}{chapter}{\textcolor{tssteelblue}{Literature}}
\printbibliography{}
%---------------------------------------------------------------------------
% Index
%---------------------------------------------------------------------------
\printindex
\end{document}