diff --git a/latexmacros.tex b/latexmacros.tex index 511e726..1c253c3 100644 --- a/latexmacros.tex +++ b/latexmacros.tex @@ -6,7 +6,7 @@ \usepackage[pdftex]{hyperref} \usepackage[margin=2cm,bottom=3cm,footskip=15mm]{geometry} \parindent0cm -\parskip1em +\parskip0.5em \usepackage{tikz} \usetikzlibrary{arrows,trees,positioning,shapes,patterns} @@ -38,7 +38,12 @@ belowskip = 8pt plus 3pt } \lstnewenvironment{code}[0]{}{} -\lstnewenvironment{showCode}[0]{\lstset{numbers=none}}{} % only shown, not compiled + +% only shown, not compiled: +\lstnewenvironment{showCode}[0]{\lstset{numbers=none}}{} + +% only compiled, not shown: +\newcommand{\hide}[1]{} % will the real phi please stand up \renewcommand{\phi}{\varphi} diff --git a/lib/Basics.lhs b/lib/Basics.lhs index 1bab762..6ff4aa8 100644 --- a/lib/Basics.lhs +++ b/lib/Basics.lhs @@ -42,4 +42,17 @@ myreverse [] = [] myreverse (x:xs) = myreverse xs ++ [x] \end{code} +If you look at the \texttt{.lhs} file then below this line you can find some Haskell code. + +\hide{ +\begin{code} +secret :: Int +secret = 4 +\end{code} +} + +But it does not show up in the PDF document. +Please only use this for boring or repetitive parts of your code. +Do not hide too much from your reader. + That's it, for now. diff --git a/report.pdf b/report.pdf index b0d394a..1a58a6e 100644 Binary files a/report.pdf and b/report.pdf differ