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?
Asked
Active
Viewed 1,835 times
2 Answers
9
Option nolol, see "5.7 Captions" of listings' documentation.
Heiko Oberdiek
- 271,626
-
-
1@m13r Answer is updated to the current
listings2015/06/04 Version 1.6. – Heiko Oberdiek Dec 06 '16 at 16:54
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
matlab-prettifierpackage; see this answer. – jub0bs Apr 28 '14 at 15:53