make proper use of draft mode
authorTobias Pape <tobias@netshed.de>
Fri, 27 Dec 2013 21:09:17 +0000 (22:09 +0100)
committerTobias Pape <tobias@netshed.de>
Sat, 28 Dec 2013 00:27:01 +0000 (01:27 +0100)
src/applied-crypto-hardening.tex
src/common/system.tex

index 6fa0276..0b77560 100644 (file)
@@ -3,7 +3,7 @@
 %%% bettercrypto.org
 %%%
 \RequirePackage{fix-cm}
-\documentclass{scrreprt}
+\documentclass[draft]{scrreprt}
 \input{common/system}
 \input{common/style}
 \input{common/commands}
index 873ed48..92f74f0 100644 (file)
@@ -40,7 +40,7 @@
 \newcommand{\no}{\textcolor{red}{\ding{55}}}
 
 % Figures and graphics
-\usepackage{graphicx}
+\usepackage[final]{graphicx}
 \usepackage{epstopdf}
 \usepackage{float}
 \usepackage{subfig}
@@ -55,7 +55,7 @@
 
 % Verbatims and listings
 \usepackage{fancyvrb}
-\usepackage{listings}
+\usepackage[final]{listings}
 
 % The page
 \usepackage[footsepline]{scrpage2}
 % Misc
 \usepackage{draftwatermark}
 \usepackage{gitinfo}
+\usepackage{catchfile}
 \usepackage{hyperref}
-% Package to create dummy text
-\usepackage{blindtext}
-% debug page layout
-%\usepackage{showframe}
 
+% for development
+\usepackage{ifdraft}
+\ifdraft{%
+  %% Heavy debugging
+  %\usepackage{showframe}
+  \usepackage{blindtext}
+  \usepackage{draftwatermark}
+  \SetWatermarkLightness{0.95}
+  %\AtEndDocument{\listoftodos}
+}{
+  \let\blindtext\relax
+  \let\Blindtext\relax
+  \let\blinddocument\relax
+  \let\Blinddocument\relax
+}
 
 %%% Local Variables: 
 %%% mode: latex