Avoid page break after last line in lstlisting
52934
Bottom frame of listing appears on top of the next page
104983
How to get second last page as a number without hyperref?
19598
Page break with \include
108760
How to disable pagebreak on \hline in longtable?
91157
Display only the penultimate (second last) row of a text
54650
Implicit newline at the end of each paragraph?
48229
lstlisting in a newenvironment
120523
Fixing lstlisting inside exsheets question and solution environments
68907
How to allow page-breaks in columns/list
41455
Automatic line-breaks in tables?
95457
Allow line break, but without inserting a dash
6487
How to prevent a page break before an itemize list?
131700
Algorithm tag and page break
24611
Masking \end{lstlisting}
140885
How to use extended ASCII characters in the lstlisting environment?
31488
lstlisting - line number gaps
145006
How to automatically skip leading white spaces in listings