Ich habe es mit und ohne \lstset versucht, mit und ohne Angabe der Programmiersprache (Matlab).
Hier aber ein Minimalbeispiel:
\documentclass[a4paper, 12pt, draft]{scrreprt} %% Das Deutsche Layout fuer article
\usepackage{geometry} %% See geometry.pdf to learn the layout options. There are lots.
\usepackage[normalem]{ulem} %%
\usepackage[intlimits]{amsmath} %% American Math Society Erweiterte Matheumgebung
\usepackage{amssymb} %% American Math Society Ereiterte Mathezeichensaetze
\usepackage{amsthm} %% American Math Society
\usepackage{mathtools} %% noch weitere Ergänzungen zu den AMS Packeten
\usepackage[applemac]{inputenc} %% Ermoeglicht die eingabe von Umlauten und des fl (applemac, ansinew für windows)
\usepackage{fancyhdr} %%
\usepackage{lastpage} %%
\usepackage[final]{graphicx} %% Ermoeglicht die Einbindung von Grafiken. Optionen: draft <> final
\usepackage{units} %% Setzt SI Einheiten korrekt
\usepackage[T1,OT1]{fontenc} %% Fontkodierung T1, 256 Zeichen Tabelle
\usepackage{tabularx} %%
\usepackage{fancybox} %%
\usepackage{theorem} %%
\usepackage{relsize} %%
\usepackage{lscape} %%
\usepackage{epstopdf} %%
\usepackage[babel,english=american]{csquotes} %% Anführungszeich mit \enquote{}
\usepackage[format=plain]{caption} %% captions for special situations
\usepackage{wrapfig} %% figures wrapped in text: use \begin{wrapfig}
\usepackage{setspace}
\usepackage{subfig}
\usepackage{listings} %% source code in latex
\begin{document}
\section{minimalbeispiel}
\lstset{numbers=left, numberstyle=\tiny, numbersep=5pt}
\lstinputlisting{listings/dld_3_0_split.m}
\begin{lstlisting}
put your code here
\end{lstlisting}
\end{document}
Und das zugehörige Log:
This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7)
\write18 enabled.
%&-line parsing enabled.
entering extended mode
(./listing_test.tex
LaTeX2e <2005/12/01>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, german-x-2008-06-18, ngerman-x-2008-06-18, ancientgreek, ibycus, ar
abic, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danish, dutc
h, esperanto, estonian, farsi, finnish, french, galician, german, ngerman, mono
greek, greek, hungarian, icelandic, indonesian, interlingua, irish, italian, la
tin, lithuanian, mongolian, mongolian2a, bokmal, nynorsk, polish, portuguese, r
omanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, turki
sh, ukenglish, ukrainian, uppersorbian, welsh, loaded.
(/usr/local/texlive/2008/texmf-dist/tex/latex/koma-script/scrreprt.cls
Document Class: scrreprt 2009/04/03 v3.03a KOMA-Script document class (report)
(/usr/local/texlive/2008/texmf-dist/tex/latex/koma-script/scrkbase.sty
(/usr/local/texlive/2008/texmf-dist/tex/latex/koma-script/scrbase.sty
(/usr/local/texlive/2008/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2008/texmf-dist/tex/latex/koma-script/scrlfile.sty
Package scrlfile, 2009/03/25 v3.03 KOMA-Script package (loading files)
Copyright (C) Markus Kohm
))) (/usr/local/texlive/2008/texmf-dist/tex/latex/koma-script/tocbasic.sty)
(/usr/local/texlive/2008/texmf-dist/tex/latex/koma-script/scrsize12pt.clo)
(/usr/local/texlive/2008/texmf-dist/tex/latex/koma-script/typearea.sty
Package typearea, 2009/04/03 v3.03a KOMA-Script package (type area)
Copyright (C) Frank Neukam, 1992-1994
Copyright (C) Markus Kohm, 1994-
)) (/usr/local/texlive/2008/texmf-dist/tex/latex/geometry/geometry.sty
(/usr/local/texlive/2008/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/local/texlive/2008/texmf-dist/tex/generic/oberdiek/ifvtex.sty)
(/usr/local/texlive/2008/texmf-dist/tex/xelatex/xetexconfig/geometry.cfg))
(/usr/local/texlive/2008/texmf-dist/tex/latex/ltxmisc/ulem.sty)
(/usr/local/texlive/2008/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2008/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/local/texlive/2008/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/local/texlive/2008/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/local/texlive/2008/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/local/texlive/2008/texmf-dist/tex/latex/amsfonts/amssymb.sty
(/usr/local/texlive/2008/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(/usr/local/texlive/2008/texmf-dist/tex/latex/amscls/amsthm.sty)
(/usr/local/texlive/2008/texmf-dist/tex/latex/mh/mathtools.sty
(/usr/local/texlive/2008/texmf-dist/tex/latex/tools/calc.sty)
(/usr/local/texlive/2008/texmf-dist/tex/latex/mh/mhsetup.sty))
(/usr/local/texlive/2008/texmf-dist/tex/latex/base/inputenc.sty
(/usr/local/texlive/2008/texmf-dist/tex/latex/base/applemac.def))
(/usr/local/texlive/2008/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty)
(/usr/local/texlive/2008/texmf-dist/tex/latex/lastpage/lastpage.sty)
(/usr/local/texlive/2008/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/local/texlive/2008/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2008/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2008/texmf/tex/latex/config/graphics.cfg)
(/usr/local/texlive/2008/texmf-dist/tex/latex/pdftex-def/pdftex.def)))
(/usr/local/texlive/2008/texmf-dist/tex/latex/units/units.sty
(/usr/local/texlive/2008/texmf-dist/tex/latex/base/ifthen.sty)
(/usr/local/texlive/2008/texmf-dist/tex/latex/units/nicefrac.sty))
(/usr/local/texlive/2008/texmf-dist/tex/latex/base/fontenc.sty
(/usr/local/texlive/2008/texmf-dist/tex/latex/base/t1enc.def)
(/usr/local/texlive/2008/texmf-dist/tex/latex/base/ot1enc.def))
(/usr/local/texlive/2008/texmf-dist/tex/latex/tools/tabularx.sty
(/usr/local/texlive/2008/texmf-dist/tex/latex/tools/array.sty))
(/usr/local/texlive/2008/texmf-dist/tex/latex/fancybox/fancybox.sty
Style option: `fancybox' v1.3 <2000/09/19> (tvz)
) (/usr/local/texlive/2008/texmf-dist/tex/latex/tools/theorem.sty
(/usr/local/texlive/2008/texmf-dist/tex/latex/tools/thp.sty))
(/usr/local/texlive/2008/texmf-dist/tex/latex/ltxmisc/relsize.sty)
(/usr/local/texlive/2008/texmf-dist/tex/latex/graphics/lscape.sty)
(/usr/local/texlive/2008/texmf-dist/tex/latex/oberdiek/epstopdf.sty
(/usr/local/texlive/2008/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/local/texlive/2008/texmf-dist/tex/latex/oberdiek/grfext.sty)
(/usr/local/texlive/2008/texmf-dist/tex/latex/oberdiek/kvoptions.sty)
(/usr/local/texlive/2008/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty
(/usr/local/texlive/2008/texmf-dist/tex/generic/oberdiek/ifluatex.sty)))
(/usr/local/texlive/2008/texmf-dist/tex/latex/csquotes/csquotes.sty
(/usr/local/texlive/2008/texmf-dist/tex/latex/etoolbox/etoolbox.sty
(/usr/local/texlive/2008/texmf-dist/tex/latex/etex-pkg/etex.sty))
(/usr/local/texlive/2008/texmf-dist/tex/latex/csquotes/csquotes.def)
(/usr/local/texlive/2008/texmf-dist/tex/latex/csquotes/csquotes.cfg))
(/usr/local/texlive/2008/texmf-dist/tex/latex/caption/caption.sty
(/usr/local/texlive/2008/texmf-dist/tex/latex/caption/caption3.sty))
(/usr/local/texlive/2008/texmf-dist/tex/latex/wrapfig/wrapfig.sty)
(/usr/local/texlive/2008/texmf-dist/tex/latex/setspace/setspace.sty
Package: `setspace' 6.7 <2000/12/01>
) (/usr/local/texlive/2008/texmf-dist/tex/latex/subfig/subfig.sty)
(/usr/local/texlive/2008/texmf-dist/tex/latex/listings/listings.sty
(/usr/local/texlive/2008/texmf-dist/tex/latex/listings/lstmisc.sty)
(/usr/local/texlive/2008/texmf-dist/tex/latex/listings/listings.cfg))
Package csquotes Warning: The 'babel' package is not available.
(csquotes) Cannot enable multilingual support on input line 40.
(./listing_test.aux)
*geometry auto-detecting driver*
*geometry detected driver: pdftex*
(/usr/local/texlive/2008/texmf-dist/tex/context/base/supp-pdf.tex
[Loading MPS to PDF converter (version 2006.09.02).]
) AED: lastpage setting LastPage [1{/usr/local/texlive/2008/texmf-var/fonts/map
/pdftex/updmap/pdftex.map}] (./listing_test.aux) )</usr/local/texlive/2008/texm
f-dist/fonts/type1/bluesky/cm/cmr12.pfb></usr/local/texlive/2008/texmf-dist/fon
ts/type1/bluesky/cm/cmssbx10.pfb>
Output written on listing_test.pdf (1 page, 7250 bytes).
SyncTeX written on listing_test.synctex.gz
Transcript written on listing_test.log.
Wenn ich alle \includes herausnehme bis auf das der listings, ändert sich nichts am Ergebnis. Trotzdem das zugehörige Log:
This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7)
\write18 enabled.
%&-line parsing enabled.
entering extended mode
(./listing_test.tex
LaTeX2e <2005/12/01>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, german-x-2008-06-18, ngerman-x-2008-06-18, ancientgreek, ibycus, ar
abic, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danish, dutc
h, esperanto, estonian, farsi, finnish, french, galician, german, ngerman, mono
greek, greek, hungarian, icelandic, indonesian, interlingua, irish, italian, la
tin, lithuanian, mongolian, mongolian2a, bokmal, nynorsk, polish, portuguese, r
omanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, turki
sh, ukenglish, ukrainian, uppersorbian, welsh, loaded.
(/usr/local/texlive/2008/texmf-dist/tex/latex/koma-script/scrreprt.cls
Document Class: scrreprt 2009/04/03 v3.03a KOMA-Script document class (report)
(/usr/local/texlive/2008/texmf-dist/tex/latex/koma-script/scrkbase.sty
(/usr/local/texlive/2008/texmf-dist/tex/latex/koma-script/scrbase.sty
(/usr/local/texlive/2008/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2008/texmf-dist/tex/latex/koma-script/scrlfile.sty
Package scrlfile, 2009/03/25 v3.03 KOMA-Script package (loading files)
Copyright (C) Markus Kohm
))) (/usr/local/texlive/2008/texmf-dist/tex/latex/koma-script/tocbasic.sty)
(/usr/local/texlive/2008/texmf-dist/tex/latex/koma-script/scrsize12pt.clo)
(/usr/local/texlive/2008/texmf-dist/tex/latex/koma-script/typearea.sty
Package typearea, 2009/04/03 v3.03a KOMA-Script package (type area)
Copyright (C) Frank Neukam, 1992-1994
Copyright (C) Markus Kohm, 1994-
)) (/usr/local/texlive/2008/texmf-dist/tex/latex/listings/listings.sty
(/usr/local/texlive/2008/texmf-dist/tex/latex/listings/lstmisc.sty)
(/usr/local/texlive/2008/texmf-dist/tex/latex/listings/listings.cfg))
(./listing_test.aux) [1{/usr/local/texlive/2008/texmf-var/fonts/map/pdftex/updm
ap/pdftex.map}] (./listing_test.aux) )</usr/local/texlive/2008/texmf-dist/fonts
/type1/bluesky/cm/cmr12.pfb></usr/local/texlive/2008/texmf-dist/fonts/type1/blu
esky/cm/cmssbx10.pfb>
Output written on listing_test.pdf (1 page, 7250 bytes).
SyncTeX written on listing_test.synctex.gz
Transcript written on listing_test.log.
Das Ergebnis ist in beiden Fällen eine Seite .pdf auf der nur "0.1 minimalbeispiel" steht.