Not include listing in list of listing
Option nolol
, see "5.7 Captions" of listings
' documentation.
If I understand you right, you want a special listing not listed in the list of listings. Just use the option nolol
for \lstinputlisting
. I used a fictive file Test.pas
. Please change to what you need.
A short MWE:
\documentclass{article}
\usepackage{listings}
\begin{document}
\lstlistoflistings % Table of listings
\lstinputlisting[language=Pascal]{Test.pas} % listed!
\lstinputlisting[language=Pascal,nolol]{Test.pas} % not listed!
\end{document}