-
Notifications
You must be signed in to change notification settings - Fork 43
/
scp_zh.tex
159 lines (135 loc) · 5.29 KB
/
scp_zh.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
\documentclass[onecolumn,11pt]{article}
%\documentclass[prodmode,acmtocs]{acmsmall}
\usepackage[top=54pt,bottom=54pt,left=64pt,right=64pt]{geometry}
\usepackage{tikz}
\usetikzlibrary{calc,positioning,fit,shapes,shapes.misc,%
shadows,shadows.blur,backgrounds,chains}
\tikzset{
myshadow/.style={drop shadow={shadow xshift=.1ex, shadow
yshift=-.1ex, shadow scale=1.03}},
myshade/.style={draw=none, line width=0, %draw=#1!50, %myshadow,
%top color=white!70!#1, bottom color=#1, shading angle=30},
fill=white!30!#1},
fewshade/.style={myshade=few-#1},
myboxshade/.style={line width=0, draw=none, %draw=#1!50,
%top color=white!70!#1, bottom color=#1, shading angle=30,
%drop shadow={shadow xshift=0.58mm, shadow yshift=-.58mm},
fill=white!30!#1
},
node/.style={draw,circle,fewshade=\maincolor},
transition/.style={->,very thick,shorten >=0pt,few-gray},
box/.style={rounded corners,inner sep=.2cm,
myboxshade=few-\maincolor!30!white,draw=few-\maincolor-bright},
}
\usepackage{enumitem}
\usepackage{graphicx}
\usepackage{amsmath, amsfonts, amssymb}
\usepackage{bm}
\usepackage[xetex]{hyperref}
%\usepackage[all]{hypcap}
%\usepackage{glossaries}
%\makeglossaries
% Not ACM compliant, but much better looking
% \usepackage[notext]{stix}
% \def\UrlFont{\ttfamily}
% \renewcommand{\ttdefault}{txtt}
\usepackage{booktabs,colortbl,tabu}
\usepackage{xspace}
%%%%%%%%%%%%%%%%%%%%
\usepackage{xcolor}
\definecolor{few-gray-bright}{HTML}{010202}
\definecolor{few-red-bright}{HTML}{EE2E2F}
\definecolor{few-green-bright}{HTML}{008C48}
\definecolor{few-blue-bright}{HTML}{185AA9}
\definecolor{few-orange-bright}{HTML}{F47D23}
\definecolor{few-purple-bright}{HTML}{662C91}
\definecolor{few-brown-bright}{HTML}{A21D21}
\definecolor{few-pink-bright}{HTML}{B43894}
\definecolor{few-gray}{HTML}{737373}
\definecolor{few-red}{HTML}{F15A60}
\definecolor{few-green}{HTML}{7AC36A}
\definecolor{few-blue}{HTML}{5A9BD4}
\definecolor{few-orange}{HTML}{FAA75B}
\definecolor{few-purple}{HTML}{9E67AB}
\definecolor{few-brown}{HTML}{CE7058}
\definecolor{few-pink}{HTML}{D77FB4}
\definecolor{few-gray-light}{HTML}{CCCCCC}
\definecolor{few-red-light}{HTML}{F2AFAD}
\definecolor{few-green-light}{HTML}{D9E4AA}
\definecolor{few-blue-light}{HTML}{B8D2EC}
\definecolor{few-orange-light}{HTML}{F3D1B0}
\definecolor{few-purple-light}{HTML}{D5B2D4}
\definecolor{few-brown-light}{HTML}{DDB9A9}
\definecolor{few-pink-light}{HTML}{EBC0DA}
\newcommand{\maincolor}{orange}
\taburulecolor{few-\maincolor-bright}
%%%%%%%%%%%%%%%%%%%%
\usepackage{fontspec}
\usepackage[slantfont, boldfont]{xeCJK} % 允许斜体和粗体
% CJK字体
\setCJKmonofont[Path=fonts/]{SimHei.ttf} % 等宽
\setCJKsansfont[Path=fonts/,BoldFont={SimHei.ttf},ItalicFont={SimKai.ttf}]{SimSun.ttf} % 无衬线
\setCJKmainfont[Path=fonts/,BoldFont={SimHei.ttf},ItalicFont={SimKai.ttf}]{SimSun.ttf} % 衬线
% 英文字体
\setmainfont[Mapping=tex-text,Path=fonts/]{LiberationSerif-Regular.ttf} % 衬线
\setsansfont[Mapping=tex-text,Path=fonts/]{LiberationSans-Regular.ttf} % 无衬线
\setmonofont[Mapping=tex-text,Path=fonts/]{LiberationMono-Regular.ttf} % 等宽
\punctstyle{kaiming} % 开明式标点格式
\usepackage{indentfirst} % 首段缩进
\setlength{\parindent}{2em}
\hypersetup{colorlinks, linkcolor=black,
filecolor=black, urlcolor=black, citecolor=blue, pdftitle={恒星共识协议:互联网级共识的联邦模型}, pdfauthor={David Mazi{\`e}res}, pdfsubject={联邦拜占庭协议}, pdfkeywords={FBA, SCP}, pdfproducer={xelatex} }
\newtheorem{theorem}{定理}
%\newtheorem*{theorem*}{定理}
\newtheorem{lemma}{引理}[section]
%\newtheorem*{lemma*}{引理}[section]
\newtheorem{definition}{定义}[section]
%\newtheorem*{definition*}{定义}[section]
\newtheorem{proof}{证明}
\newcommand{\todo}[1]{{\footnotesize \textcolor{red}{$\ll$\textsf{TODO #1}$\gg$}}}%
\newcommand{\mybm}[1]{{\bm #1}}%
\newcommand{\quorum}{群体}
\newcommand{\slot}{存储单元}
\newcommand{\vblock}{$v-\!\!$阻塞}
\newcommand{\V}{\mathbf V}
\newcommand{\Q}[1]{\mathbf Q(#1)}
\newcommand{\VQ}{\ifmmode\langle\V,\mathbf Q\rangle\else
$\langle\V,\mathbf Q\rangle$\fi\xspace}
\newcommand{\Qb}{\mathbf{Q}^B}
\newcommand{\VQb}{$\langle\V,\mathbf Q\rangle^B$\xspace}
\newcommand{\VQbn}[1]{$\langle\V,\mathbf{Q}\rangle^{B_{#1}}$\xspace}
\renewcommand{\figurename}{图}
\renewcommand\refname{参考文献}
\renewcommand{\abstractname}{摘\hspace{2em}要}
\newcommand{\FBA}{SCP\@\xspace}
\newcommand{\na}{\ensuremath{\bar a}}
\newcommand\confirm[1]{\ensuremath\textrm{accept}(#1)}
\newcommand{\bzero}{\ifmmode\mathbf 0\else$\mathbf 0$\xspace\fi}
\newcommand\ratified[1]{\ensuremath\textrm{ratified}(#1)}
\def\sectionautorefname{节}
\def\subsectionautorefname{节}
\def\subsubsectionautorefname{节}
\def\globaltheoremautorefname{定理}
\title{恒星共识协议:互联网级共识的联邦模型}
\author{David Mazi{\`e}res\\恒星发展基金会}
\date{}
\begin{document}
\maketitle
\input{tex/0-abstract}
\input{tex/1-intro}
\input{tex/2-related}
\input{tex/3-fba}
\input{tex/4-resilience}
\input{tex/5-voting}
\input{tex/6-scp}
\input{tex/7-limitations}
\input{tex/8-summary}
\input{tex/app1-ack}
\input{tex/app2-disclaimer}
\input{tex/appendix}
%\input{tex/appA-glossary}
%\printglossaries
%\bibliographystyle{abbrv}
\bibliographystyle{plain}
\bibliography{ref}
\end{document}