mirror of
https://github.com/Wandmalfarbe/pandoc-latex-template.git
synced 2024-12-18 22:07:51 +00:00
Add support for listings-no-page-break
Update eisvogel.tex
This commit is contained in:
commit
5a2416417c
@ -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$
|
||||
|
Loading…
Reference in New Issue
Block a user