--- a/langs.sty Wed Sep 03 11:01:49 2014 +0100
+++ b/langs.sty Wed Sep 03 14:57:43 2014 +0100
@@ -1,4 +1,5 @@
\usepackage{listings}
+\usepackage{etoolbox}
\setmonofont[Scale=.95]{Consolas}
\newfontfamily{\consolas}{Consolas}
@@ -8,7 +9,8 @@
\definecolor{codedocblue}{rgb}{0.25,0.35,0.75} % doc
\definecolor{codeblue}{rgb}{0.25,0.35,0.75} % types
-
+\BeforeBeginEnvironment{lstlisting}{\par\noindent\begin{minipage}{\linewidth}}
+\AfterEndEnvironment{lstlisting}{\end{minipage}\par}
\lstdefinelanguage{Scala}{
morekeywords={abstract,case,catch,class,def,%