# Not include listing in list of listing

I would not add to list of listing some of my listings. For example I import my matlab file through \lstinputlisting. What command I should use to not add that code to list of listing?

Option nolol, see "5.7 Captions" of listings' documentation.

• should be nolol (?)... please show how to use it – m13r Dec 1 '16 at 11:45
• @m13r Answer is updated to the current listings 2015/06/04 Version 1.6. – Heiko Oberdiek Dec 6 '16 at 16:54

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}