Revert "Revert "Merge pull request #36 from krono/krono/draft-enhanchement""
[ach-master.git] / src / common / system.tex
index 873ed48..17b044d 100644 (file)
 \newcommand{\no}{\textcolor{red}{\ding{55}}}
 
 % Figures and graphics
-\usepackage{graphicx}
+\usepackage[final]{graphicx}
 \usepackage{epstopdf}
 \usepackage{float}
 \usepackage{subfig}
 \usepackage{placeins}
 \usepackage{wrapfig}
+\usepackage{tikz}
+\usetikzlibrary{shapes,arrows}
 
 % Tables
 \usepackage{longtable}
 \usepackage{booktabs}
 \renewcommand{\arraystretch}{1.25}
-
+\usepackage{multicol}
 
 % Verbatims and listings
 \usepackage{fancyvrb}
-\usepackage{listings}
+\usepackage[final]{listings}
 
 % The page
 \usepackage[footsepline]{scrpage2}
 \usepackage{lastpage}
 
 % 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{eso-pic}
+  \newsavebox{\draftPageLine}
+  \newsavebox{\draftWatermark}
+  \AddToShipoutPicture{%
+    \AtPageLowerLeft{\usebox{\draftWatermark}}
+    \AtPageUpperLeft{%
+      \raisebox{-\height}[\height][0pt]{\usebox{\draftPageLine}}}%
+    \AtPageLowerLeft{%
+      \raisebox{\depth}[\height][0pt]{\usebox{\draftPageLine}}}%
+  }
+  % \AtEndDocument{\listoftodos}
+}{
+  \let\blindtext\relax
+  \let\Blindtext\relax
+  \let\blinddocument\relax
+  \let\Blinddocument\relax
+}
 
 %%% Local Variables: 
 %%% mode: latex