Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
add comment

2 Answers

up vote 5 down vote accepted

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

share|improve this answer
    
yeah...thanks it works...thanks so much!!! –  Mazzy Dec 8 '12 at 1:53
add comment

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}
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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