# 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?

-
You might be interested in the matlab-prettifier package; see this answer. – Jubobs Apr 28 '14 at 15:53

Option nol, see "4.7 Captions" of listings' documentation.

-
yeah...thanks it works...thanks so much!!! – Mazzy Dec 8 '12 at 1:53

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}

-