Skip to content

Commit a91c29c

Browse files
authored
Merge pull request ethereum#582 from fulldecent/feature-white-mode
Add option to build white paper
2 parents 3972e91 + 5b8c4bf commit a91c29c

File tree

2 files changed

+22
-6
lines changed

2 files changed

+22
-6
lines changed

Paper.tex

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@
4242
\usepackage[autostyle]{csquotes}
4343
\MakeOuterQuote{"}
4444

45-
\input{Version.tex}
45+
% Default rendering options
46+
\definecolor{pagecolor}{rgb}{1,0.98,0.9}
47+
\def\YellowPaperVersionNumber{unknown revision}
48+
\IfFileExists{Options.tex}{\input{Options.tex}}
4649

4750
\newcommand{\hcancel}[1]{%
4851
\tikz[baseline=(tocancel.base)]{
@@ -51,23 +54,22 @@
5154
}%
5255
}%
5356

54-
\definecolor{lightyellow}{rgb}{1,0.98,0.9}
5557

5658
\DeclarePairedDelimiter{\ceil}{\lceil}{\rceil}
5759
\newcommand*\eg{e.g.\@\xspace}
5860
\newcommand*\Eg{e.g.\@\xspace}
5961
\newcommand*\ie{i.e.\@\xspace}
6062
%\renewcommand{\itemhook}{\setlength{\topsep}{0pt} \setlength{\itemsep}{0pt}\setlength{\leftmargin}{15pt}}
6163

62-
\title{Ethereum: A Secure Decentralised Generalised Transaction Ledger \\ {\smaller \textbf{Byzantium version \YellowPaperVersionNumber{}}}}
64+
\title{Ethereum: A Secure Decentralised Generalised Transaction Ledger \\ {\smaller \textbf{Byzantium version \YellowPaperVersionNumber}}}
6365
\author{
6466
Dr. Gavin Wood\\
6567
Founder, Ethereum \& Parity\\
6668
6769
}
6870
\begin{document}
6971

70-
\pagecolor{lightyellow}
72+
\pagecolor{pagecolor}
7173

7274
\begin{abstract}
7375
The blockchain paradigm when coupled with cryptographically-secured transactions has demonstrated its utility through a number of projects, with Bitcoin being one of the most notable ones. Each such project can be seen as a simple application on a decentralised, but singleton, compute resource. We can call this paradigm a transactional singleton machine with shared-state.

build.sh

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,32 @@
11
#!/usr/bin/env bash
22

3+
##
4+
## Usage: build.sh [white]
5+
##
6+
7+
38
set -e
49

10+
rm -rf Options.tex
11+
512
if [ -d ".git" ]; then
613

714
SHA=`git rev-parse --short --verify HEAD`
815
DATE=`git show -s --format="%cd" --date=short HEAD`
916
REV="$SHA - $DATE"
17+
echo "\def\YellowPaperVersionNumber{$REV}" >> Options.tex
18+
19+
fi
20+
1021

11-
else
22+
if [ "$1" == "white" ]; then
1223

13-
REV="unknown revision"
24+
echo "\definecolor{pagecolor}{rgb}{1,1,1}" >> Options.tex
1425

1526
fi
1627

28+
29+
1730
echo "\newcommand{\YellowPaperVersionNumber}{$REV}" > Version.tex
1831

1932
mkdir build
@@ -22,3 +35,4 @@ bibtex build/Paper && \
2235
pdflatex -output-directory=build -interaction=errorstopmode -halt-on-error Paper.tex && \
2336
pdflatex -output-directory=build -interaction=errorstopmode -halt-on-error Paper.tex && \
2437
pdflatex -output-directory=build -interaction=errorstopmode -halt-on-error Paper.tex
38+
rm -rf Options.tex

0 commit comments

Comments
 (0)