6

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?

Mensch
  • 65,388
Mazzy
  • 7,642

2 Answers2

9

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

Heiko Oberdiek
  • 271,626
5

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}
Mensch
  • 65,388