von Hannes_r » Fr 21. Jun 2013, 18:00
Ok schuld ist wohl das vorherige XML Listing, daher der komplette Code.
Wie lösche ich die Einstellungen aus dem XML Listings?
\documentclass[
a4paper, 12pt
]{scrreprt}
\usepackage{listings}
\usepackage{color}
\begin{document}
\lstset{
language=XML,
breaklines=true,
basicstyle=\ttfamily,
columns=fullflexible,
showstringspaces=false,
commentstyle=\color{gray}\upshape
morestring=[b]",
morestring=[s],
morecomment=[s]{<?}{?>},
stringstyle=\color{magenta},
identifierstyle=\color{cyan},
keywordstyle=\color{darkblue},
morekeywords={day,date,Jun, low, high, text, code}
}
\begin{lstlisting}[frame=single]
<yweather:forecast day="Thu" date="6 Jun 2013" low="17" high="22" text="Partly Cloudy" code="30"/>
<yweather:forecast day="Fri" date="7 Jun 2013" low="17" high="23" text="Partly Cloudy" code="30"/>
<yweather:forecast day="Sat" date="8 Jun 2013" low="17" high="23" text="Partly Cloudy" code="30"/>
<yweather:forecast day="Sun" date="9 Jun 2013" low="17" high="24" text="Mostly Cloudy" code="28"/>
<yweather:forecast day="Mon" date="10 Jun 2013" low="17" high="23" text="AM Clouds/PM Sun" code="30"/>
\end{lstlisting}
\lstset{
language=Matlab,
breaklines=true,
numbers=left,
numberstyle=\tiny,
numbersep=5pt,
\lstinputlisting[language=Matlab, frame=single]{./code/regelstrategie.m}
\end{document}
Ok schuld ist wohl das vorherige XML Listing, daher der komplette Code.
Wie lösche ich die Einstellungen aus dem XML Listings?
[code]\documentclass[
a4paper, 12pt
]{scrreprt}
\usepackage{listings}
\usepackage{color}
\begin{document}
\lstset{
language=XML,
breaklines=true,
basicstyle=\ttfamily,
columns=fullflexible,
showstringspaces=false,
commentstyle=\color{gray}\upshape
morestring=[b]",
morestring=[s],
morecomment=[s]{<?}{?>},
stringstyle=\color{magenta},
identifierstyle=\color{cyan},
keywordstyle=\color{darkblue},
morekeywords={day,date,Jun, low, high, text, code}
}
\begin{lstlisting}[frame=single]
<yweather:forecast day="Thu" date="6 Jun 2013" low="17" high="22" text="Partly Cloudy" code="30"/>
<yweather:forecast day="Fri" date="7 Jun 2013" low="17" high="23" text="Partly Cloudy" code="30"/>
<yweather:forecast day="Sat" date="8 Jun 2013" low="17" high="23" text="Partly Cloudy" code="30"/>
<yweather:forecast day="Sun" date="9 Jun 2013" low="17" high="24" text="Mostly Cloudy" code="28"/>
<yweather:forecast day="Mon" date="10 Jun 2013" low="17" high="23" text="AM Clouds/PM Sun" code="30"/>
\end{lstlisting}
\lstset{
language=Matlab,
breaklines=true,
numbers=left,
numberstyle=\tiny,
numbersep=5pt,
\lstinputlisting[language=Matlab, frame=single]{./code/regelstrategie.m}
\end{document}[/code]