Thanks Stefan,
for your help.
Due to trying to use the same template in 2 different programs (LyX and TeXShop), I suggest solving my problem fist only for TeXShop.
TeXShop only produces the first 2 errors of
this post e.g
( 1.) Package keyval Error: directivestyle undefined, 2.) Package ifpdf Error)
To error Nr.1)
When pressing "go to error" the cursor jumps to the curly brace '}' in the last line.
Code: Select all
\usepackage{listings}
\lstloadlanguages{}
\lstloadlanguages{C,C++,Java,Matlab,HTML,TeX,XML}
%\lstset{}% restore default
%# title={Titel}: gibt einen Titel zur Umgebung an (erscheint ¸ber dem Code zentriert)
%# caption={Titel}:
%# label=Name:
\lstset{
frame=lines, %Umrandung (single|none|shadowbox|lines|bottomline|topline|leftline)
framerule=1pt, %Rahmenbreite
tabsize=4, %Anzahl der Zeichen f¸r ein TAB
backgroundcolor=\color{lightgray}, %Hintergrundfarbe
emph={}, %hebt die angegebenen Wˆrter hervor
emphstyle=\underbar, %unterstreicht hervorgehobene Wˆrter
columns=fixed, %Zeichenabstand (fixed | flexible | fullflexible)
lineskip=0pt, %Zeilenabstand
basicstyle=\ttfamily,%\ttfamily,
identifierstyle=\color{black},
commentstyle=\color{darkgreen},
stringstyle=\color{viola},
keywordstyle=\color{darkblue},
ndkeywordstyle=\color{black},
directivestyle=,
showspaces=false,
showtabs=false,
numbers=none, %Zeilennummern (none|left|right)
%numbertype=\ttfamily,
breaklines=true,
captionpos=b,
extendedchars=false
}
To error Nr.2)
I don´t know what this package is used for. It is written in the template the institute of the university gave to me and which all other students should use also. Maybe I can ask them, what I need them for?
In the case, it has to be used, what might be the error there?
Thank you!
pooz