Skip to content

Commit 472e8b5

Browse files
jensmaurerzygoloid
authored andcommitted
[styles] Check for listings.sty version 1.6
1 parent 6832be8 commit 472e8b5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

source/styles.tex

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,15 @@
154154
%% override some functions from the listings package to avoid bad page breaks
155155
%% (copied verbatim from listings.sty version 1.6 except where commented)
156156
\makeatletter
157+
158+
\lst@CheckVersion{1.6}{\lst@CheckVersion{1.5b}{
159+
\typeout{^^J%
160+
***^^J%
161+
*** This file requires listings.sty version 1.6.^^J%
162+
*** You have version \lst@version; exiting ...^^J%
163+
***^^J}%
164+
\batchmode \@@end}}
165+
157166
\def\lst@Init#1{%
158167
\begingroup
159168
\ifx\lst@float\relax\else

0 commit comments

Comments
 (0)