Loomes
12-01-2008, 00:08
Hallo, kann mir bitte jemand sagen, warum der Mathemodus nicht in meiner Listingsumgebung zu fkt. scheint? Danke.
\documentclass[a4paper,fleqn]{scrartcl} %Papierformat + KOMA-Script, fleqn notw. für \mathindent
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc} % für öüäß
\usepackage{ngerman}
\usepackage{color} % required for \textcolor{}{}
\usepackage{listings} %% Auflistung von Programmen\definecolor{Gray}{gray}{0.9}
\definecolor{Gray}{gray}{0.9}
\lstset{language=TeX, basicstyle=\ttfamily\scriptsize, backgroundcolor=\color{Gray}, numbers=left, numberstyle=\tiny, numbersep=5pt}
\usepackage{paralist} % für \begin{enumerate}[{\textbullet\ B}1:]
\begin{document}
\begin{center}
\begin{minipage}{0.9\textwidth}
\begin{lstlisting} [frame=single,firstnumber=1]
X = input activity pattern (vector);
W = layer I synaptic weight matrix;
C = responding superficial layer cells (col vector);
k = learning rate parameter;
win(X,W) = column vector in W most responsive to X before $[\forall j]$
\end{lstlisting}
\end{minipage}
\end{center}
\end{document}
\documentclass[a4paper,fleqn]{scrartcl} %Papierformat + KOMA-Script, fleqn notw. für \mathindent
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc} % für öüäß
\usepackage{ngerman}
\usepackage{color} % required for \textcolor{}{}
\usepackage{listings} %% Auflistung von Programmen\definecolor{Gray}{gray}{0.9}
\definecolor{Gray}{gray}{0.9}
\lstset{language=TeX, basicstyle=\ttfamily\scriptsize, backgroundcolor=\color{Gray}, numbers=left, numberstyle=\tiny, numbersep=5pt}
\usepackage{paralist} % für \begin{enumerate}[{\textbullet\ B}1:]
\begin{document}
\begin{center}
\begin{minipage}{0.9\textwidth}
\begin{lstlisting} [frame=single,firstnumber=1]
X = input activity pattern (vector);
W = layer I synaptic weight matrix;
C = responding superficial layer cells (col vector);
k = learning rate parameter;
win(X,W) = column vector in W most responsive to X before $[\forall j]$
\end{lstlisting}
\end{minipage}
\end{center}
\end{document}