Re-enable draft
[ach-master.git] / src / applied-crypto-hardening.tex
index 585953c..6e996f3 100644 (file)
 %%% Applied Crypto Hardening
 %%% bettercrypto.org
 %%%
-%%%% Based on:
-%%% LaTeX Template: Two column article
-%%%
-%%% Source: http://www.howtotex.com/
-%%% Feel free to distribute this template, but please keep to referal to http://www.howtotex.com/ here.
-%%% Date: February 2011
-%%%%
-
-%%% Preamble
 \RequirePackage{fix-cm}
-\documentclass{scrreprt}
-\usepackage[utf8]{inputenc}
-% changes font encoding to T1
-\usepackage[T1]{fontenc}
-\usepackage{textcomp}
-% For searchable pdfs
-\input glyphtounicode
-\pdfgentounicode=1
-\usepackage{fixltx2e}
-
-\KOMAoptions{paper=a4%
-  ,fontsize=10pt%
-  ,DIV=12%
-  ,parskip=true%
-}
-
-
-\usepackage[english]{babel}
-\usepackage[final,babel=true]{microtype}[2011/08/18]
-\usepackage{graphicx}
-\usepackage[hang, small,labelfont=bf,up,textfont=it,up]{caption}
-\usepackage{epstopdf}
-\usepackage{subfig}
-
-\usepackage[usenames,dvipsnames]{color}
-\usepackage{float}
-\usepackage{subfig}
-\usepackage{acronym}
-\usepackage{fancyvrb}
-\usepackage{listings}
-\usepackage{longtable}
-
-% Epigraph / dictum
-\renewcommand*{\dictumrule}{}
-\renewcommand*{\dictumauthorformat}[1]{--- #1}
-\newcommand*{\epigraph}[3][]{\dictum[#3]{#2}\bigskip}
-\addtokomafont{dictumtext}{\itshape}
-\setkomafont{dictumauthor}{\normalfont}
-\renewcommand{\dictumwidth}{8cm}
-
-\usepackage{gitinfo}
-
-% custom changes:
-\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
-\usepackage{placeins}
-\usepackage{draftwatermark}
-
-% human tables
-\usepackage{booktabs}
-\renewcommand{\arraystretch}{1.25}
-
-% side box
-\usepackage{wrapfig}
-%\usepackage{tcolorbox}
-\newenvironment{WrapText}[1][r]
-  {\wrapfigure{#1}{0.5\textwidth}\tcolorbox}
-  {\endtcolorbox\endwrapfigure}
-
-% Add text symbols
-\usepackage{pifont}
-\newcommand{\yes}{\textcolor{green}{\ding{51}}}
-\newcommand{\no}{\textcolor{red}{\ding{55}}}
-
-
-% Colours
-\definecolor{green}{RGB}{32,113,10}
-\definecolor{orange}{RGB}{251,111,16}
-\definecolor{red}{RGB}{247,56,0}
-\definecolor{blue}{RGB}{0,28,128}
-\definecolor{lightgreen}{RGB}{187,218,216}
-\definecolor{intersectgreen}{RGB}{103,133,155}
-\definecolor{darkblue}{RGB}{76,87,117}
-
-\bibliographystyle{alphalink}
-
-\definecolor{Brown}{cmyk}{0,0.81,1,0.60}
-\definecolor{OliveGreen}{cmyk}{0.64,0,0.95,0.40}
-\definecolor{CadetBlue}{cmyk}{0.62,0.57,0.23,0}
-\definecolor{lightlightgray}{gray}{0.9}
-
-
-% make font Open Sans
-\usepackage[defaultsans]{opensans}
-
-% makes default font sans-serif
- \renewcommand{\familydefault}{\sfdefault}
+\documentclass[draft]{scrreprt}
+\input{common/system}
+\input{common/style}
+\input{common/commands}
 
-%
-% Fonts are loaded, now is the right time for mictorype.
-\microtypesetup{stretch=9,shrink=15,step=3,tracking=smallcaps,letterspace=75}
-
-
-\lstset{
-%language=Bash,                             % Code langugage
-basicstyle=\ttfamily,                   % Code font, Examples: \footnotesize, \ttfamily
-keywordstyle=\color{OliveGreen},        % Keywords font ('*' = uppercase)
-commentstyle=\color{gray},              % Comments font
-%numbers=left,                           % Line nums position
-%numberstyle=\tiny,                      % Line-numbers fonts
-%stepnumber=1,                           % Step between two line-numbers
-%numbersep=5pt,                          % How far are line-numbers from code
-backgroundcolor=\color{lightlightgray}, % Choose background color
-frame=none,                             % A frame around the code
-tabsize=2,                              % Default tab size
-captionpos=b,                           % Caption-position = bottom
-breaklines=true,                        % Automatic line breaking?
-breakatwhitespace=false,                % Automatic breaks only at whitespace?
-showspaces=false,                       % Dont make spaces visible
-showtabs=false,                         % Dont make tabls visible
-columns=fixed,                          % Column format
-morekeywords={__global__, __device__},  % 
-}
-
-
-%% \todo{} command.
-% Outputs red TODOs in the document. Requires \usepackage{color}.
-% Usage: \todo{Document the TODO command.}
-% Comment out second line to disable.
-\newcommand{\todo}[1]{}
-\renewcommand{\todo}[1]{{\color{Red} TODO: {#1}}}
-
-\addtokomafont{disposition}{\color{darkblue}\bfseries}
-% use more of the page
-%\usepackage{fullpage}
-
-% Detect if we can use the brand new scrlayer
-% else use the good old scrpage2
-\newif\ifscrlayer
-{\def\tempa#1 v#2 #3!{\ifdim #2pt>3.11pt\relax \global\scrlayertrue\else \scrlayerfalse\fi}
-\expandafter\tempa\KOMAScriptVersion!}
-\ifscrlayer
-\usepackage[footsepline]{scrlayer-scrpage}
-\else
-\usepackage[footsepline]{scrpage2}
-\fi
-
-\usepackage{lastpage}
-
-\ifoot%
-[{\footnotesize Applied Crypto Hardening \textbullet ~Draft revision\gitVtags: \gitAbbrevHash{} (\gitCommitterIsoDate) \gitCommitterName}]%
-{{\footnotesize Applied Crypto Hardening \textbullet ~Draft revision\gitVtags: \gitAbbrevHash{} (\gitCommitterIsoDate) \gitCommitterName}}
-\cfoot[]{}
-\ofoot%
-[{\footnotesize page \thepage\ of \pageref{LastPage}}]%
-{{\footnotesize page \thepage\ of \pageref{LastPage}}}
-
-% Creating a horizontal rule
-\newcommand{\HorRule}{\color{darkblue}%
-  \rule{\linewidth}{1pt}%
-}
-
-\date{\today}
-
-%tell TeX where to look for graphics/logos
-\graphicspath{ {/img/} }
-
-% hyperref needs to be the last package you load.
-\usepackage[pdftex,breaklinks,colorlinks,linkcolor=darkblue,citecolor=blue,urlcolor=blue]{hyperref}
-
-% Package to create dummy text
-\usepackage{blindtext}
-% debug page layout
-%\usepackage{showframe}
-
-%%% Begin document
 \begin{document}
-
-%\maketitle
-\pagestyle{scrheadings}
-% new title page
-\input{title.tex}
-
-
-
+\input{title}
 \input{neboltai}
 \input{acknowledgements}
 \input{abstract}
@@ -207,7 +31,8 @@ morekeywords={__global__, __device__},  %
 %\epigraph{``Number theorists are like lotus-eaters - having tasted this food they can never give it up.''}{Leopold Kronecker}
 \label{chapter:Theory}
 \input{theory}
-\chapter{Appendix}
+\appendix
+\label{appendix}
 \input{tools}
 \input{links}
 \input{suggested_reading}