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
  • 1
    @m13r Answer is updated to the current listings 2015/06/04 Version 1.6. 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:


\lstlistoflistings                                % Table of listings
\lstinputlisting[language=Pascal]{Test.pas}       % listed!
\lstinputlisting[language=Pascal,nolol]{Test.pas} % not listed!   

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.