From c6b0a871f5f3627db9a6f1159fa5e38b88fe59dc Mon Sep 17 00:00:00 2001 From: wollanup Date: Fri, 2 Nov 2018 11:30:55 +0100 Subject: [PATCH] Update eisvogel.tex --- eisvogel.tex | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/eisvogel.tex b/eisvogel.tex index 1986732..f252054 100644 --- a/eisvogel.tex +++ b/eisvogel.tex @@ -259,6 +259,11 @@ $if(listings)$ \usepackage{listings} \newcommand{\passthrough}[1]{#1} $endif$ +$if(listings-no-page-break)$ +\usepackage{etoolbox} +\BeforeBeginEnvironment{lstlisting}{\par\noindent\begin{minipage}{\linewidth}} +\AfterEndEnvironment{lstlisting}{\end{minipage}\par\addvspace{\topskip}} +$endif$ $if(lhs)$ \lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{} $endif$