Move some of the LaTeX hacks around to put potentially document-independent stuff first.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Daira Hopwood 2018-04-11 07:41:02 +01:00
parent cda5339eba
commit 052188d218
1 changed files with 32 additions and 28 deletions

View File

@ -122,29 +122,6 @@
\newlist{lines}{itemize}{3}
\setlist[lines]{itemsep=-0.5ex,topsep=0ex,before=\vspace{1ex},leftmargin=1.6em,label=,after=\vspace{1ex}}
\newcommand{\docversion}{Version unavailable (check protocol.ver)}
\newcommand{\SaplingSpec}{Overwinter+Sapling}
\newtoggle{issapling}
\togglefalse{issapling}
\InputIfFileExists{protocol.ver}{}{}
\newcommand{\doctitle}{Zcash Protocol Specification}
\newcommand{\leadauthor}{Daira Hopwood}
\newcommand{\coauthora}{Sean Bowe}
\newcommand{\coauthorb}{Taylor Hornby}
\newcommand{\coauthorc}{Nathan Wilcox}
\newcommand{\keywords}{anonymity, applications, cryptographic protocols,\
electronic commerce and payment, financial privacy, proof of work, zero knowledge}
\hypersetup{
pdfborderstyle={/S/U/W 0.7},
pdfinfo={
Title={\doctitle, \docversion},
Author={\leadauthor, \coauthora, \coauthorb, \coauthorc},
Keywords={\keywords}
}
}
\makeatletter
\renewcommand*{\@fnsymbol}[1]{\ensuremath{\ifcase#1\or \dagger\or \ddagger\or \mathsection\or \mathparagraph\else\@ctrerr\fi}}
@ -199,6 +176,12 @@ electronic commerce and payment, financial privacy, proof of work, zero knowledg
\newcommand{\introsection}{\needspace{35ex}}
\newcommand{\intropart}{\needspace{55ex}}
\newtheorem{theorem}{Theorem}
\numberwithin{theorem}{subsection}
\newtheorem*{lemma*}{Lemma}
\mathchardef\mhyphen="2D
\newcommand{\lrarrow}{\texorpdfstring{$\leftrightarrow$}{}}
@ -260,6 +243,32 @@ electronic commerce and payment, financial privacy, proof of work, zero knowledg
\newcommand{\sbitbox}[2]{\bitbox{#1}{\strut #2}}
\newcommand{\docversion}{Version unavailable (check protocol.ver)}
\newcommand{\SaplingSpec}{Overwinter+Sapling}
\newtoggle{issapling}
\togglefalse{issapling}
\InputIfFileExists{protocol.ver}{}{}
\newcommand{\doctitle}{Zcash Protocol Specification}
\newcommand{\leadauthor}{Daira Hopwood}
\newcommand{\coauthora}{Sean Bowe}
\newcommand{\coauthorb}{Taylor Hornby}
\newcommand{\coauthorc}{Nathan Wilcox}
\newcommand{\keywords}{anonymity, applications, cryptographic protocols,\
electronic commerce and payment, financial privacy, proof of work, zero knowledge}
\hypersetup{
pdfborderstyle={/S/U/W 0.7},
pdfinfo={
Title={\doctitle, \docversion},
Author={\leadauthor, \coauthora, \coauthorb, \coauthorc},
Keywords={\keywords}
}
}
% <https://en.wikibooks.org/wiki/LaTeX/Colors#The_68_standard_colors_known_to_dvips>
\newcommand{\todo}[1]{{\color{Sepia}\sf{TODO: #1}}}
@ -290,11 +299,6 @@ electronic commerce and payment, financial privacy, proof of work, zero knowledg
\newcommand{\optSprout}[1]{#1}
}
\newtheorem{theorem}{Theorem}
\numberwithin{theorem}{subsection}
\newtheorem*{lemma*}{Lemma}
% Terminology