also so funktioniert es:
Code:
s\documentclass[a4paper,10pt, fleqn]{scrartcl}
\usepackage [ansinew] {inputenc}
\usepackage{listings} %listingumgebung für Quellcodes
\lstset{columns=fullflexible, basicstyle=\ttfamily, keepspaces=true}%Schriftgröße gleich groß wie in verbatim-Umgebung
\usepackage{graphicx}
\usepackage[fleqn]{amsmath} %Ergänzungspaket für mathematische Formeln
%[fleqn] = abgesetzte Formeln linksbün
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage[a4paper,inner=2.5cm,outer=2.5cm,top=1.5cm,bottom=2cm, includeheadfoot]{geometry}
\begin{document}
\begin{lstlisting}[mathescape=true][keepspaces=true]
$\hookrightarrow$ (lambda (lis)
$\phantom{\hookrightarrow}$ ($\left\lceil p\right\rceil$ xxx
$\phantom{\hookrightarrow}$ $\phantom{\left\lceil p\right\rceil}$ zzz))
\end{lstlisting}
\end{document}
Danke!
Ist nur etwas nervig, die ganzen \phantoms{...} einzutippen.
Lesezeichen