vertical space and font optimization
authorRoland Hieber <rohieb@rohieb.name>
Fri, 17 Jan 2014 07:06:18 +0000 (08:06 +0100)
committerRoland Hieber <rohieb@rohieb.name>
Fri, 17 Jan 2014 07:23:54 +0000 (08:23 +0100)
main.tex

index ba0b733..9f3f2c7 100644 (file)
--- a/main.tex
+++ b/main.tex
@@ -9,12 +9,20 @@
 \usepackage{todonotes}
 \usepackage{tikz}
 \usepackage{enumitem}  % for sparse lists with \setlist
-
 \usetikzlibrary{arrows}
+
+% use sans-serif font for code instead of default monospace
 \urlstyle{sf}
+\makeatletter \def\verbatim@font{\sffamily} \makeatother
+
+% optimize vertical space in lists
 \setlist[enumerate]{noitemsep}
 \setlist[itemize]{noitemsep}
 
+% ...and in verbatim environment
+\usepackage{etoolbox}
+\makeatletter \preto{\@verbatim}{\topsep=0pt \partopsep=0pt} \makeatother
+
 \newcommand{\pages}[1]{\marginpar{#1 pages}}
 \newcommand{\term}[1]{\emph{#1}}
 \newcommand{\code}[1]{\textsf{#1}}
@@ -45,7 +53,7 @@ communication protocol used in Chatty Things.
 \input{sec-discussion.tex}
 
 \bibliographystyle{plain}
-{\small \bibliography{biblio}}
+{\footnotesize \bibliography{biblio}}
 
 \end{document}
 % vim: set ft=tex et ts=2 sw=2 :
This page took 0.049348 seconds and 4 git commands to generate.