Hier ein Minimalbeispiel:
\documentclass{beamer} \usepackage[ngerman]{babel} \usepackage[latin1]{inputenc} \usepackage{amsmath,amsfonts,amssymb} \usepackage{mathtools} \usepackage{listings} \usepackage{tikz} \usetikzlibrary{arrows,decorations.pathmorphing,backgrounds,fit,automata,shapes} \usetheme{Frankfurt} \setbeamertemplate{footline}[frame number] %Seitenzahlen in Fußzeile einfügen \lstset{ basicstyle=\ttfamily, numbers=left, showstringspaces=false, language=Haskell, commentstyle=\itshape\color{darkgray}, keywordstyle=\bfseries\color{red}, stringstyle=\color{green}, breaklines=true, breakautoindent=true, columns=flexible, frame=single, captionpos=b, xleftmargin=1.5em, xrightmargin=1em, aboveskip=10pt, linewidth = 11cm } \begin{document} \begin{frame}[fragile] \frametitle{Size-Change Graphs} \begin{itemize} \item Help us to keep track of decreasing data values \item Capture information about one function call \end{itemize} Examples: \begin{columns} \column{0.5\textwidth} \begin{block}{} \begin{center} \begin{lstlisting}[mathescape=true, linewidth = 6.5cm, numbers = none, frame = none, basicstyle=\small, aboveskip = 5pt, belowskip = 5pt] f(a,b) = ... else 1:g(a,b-1,a) \end{lstlisting} \scalebox{0.8}{ \begin{tikzpicture}{->,>=stealth',shorten >=1pt,auto,semithick} \tikzstyle{every state}=[minimum size=10pt,fill=white,text=black, node distance=1cm] \tikzstyle{every pin edge}=[<-,shorten <=1pt] \node[state,shape=circle] (a) {$a$}; \node[state,shape=circle] (b) at (0, -1.5) {$b$}; \node[state,shape=circle] (c) at (1.5,0.75) {$c$}; \node[state,shape=circle] (d) at (1.5,-0.75) {$d$}; \node[state,shape=circle] (e) at (1.5,-2.25) {$e$}; \path[->] (a) edge node[above] {$\downarrow$} (c) (a) edge node[above, very near end] {$\downarrow$} (e) (b) edge node[above, near end] {$\downarrow$} (d) ; \end{tikzpicture}} \end{center} \end{block} \column{0.5\textwidth} \begin{block}{} \begin{flushleft} \begin{lstlisting}[mathescape=true, linewidth = 6.5cm, numbers = none, frame = none, basicstyle=\small, aboveskip = 5pt, belowskip = 5pt] g(c,d,e) = ... else 2:g(c,d-1,e$\cdot$c) \end{lstlisting} \end{flushleft} \begin{center} \scalebox{0.8}{ \centering \begin{tikzpicture}{->,>=stealth',shorten >=1pt,auto,semithick} \tikzstyle{every state}=[minimum size=16pt,fill=white,text=black, node distance=1.5cm] \tikzstyle{every pin edge}=[<-,shorten <=1pt] \node[state,shape=circle] (c) {$c$}; \node[state,shape=circle] (d) [below of = c] {$d$}; \node[state,shape=circle] (e) [below of = d] {$e$}; \node[state,shape=circle] (c1)[right of = c] {$c$}; \node[state,shape=circle] (d1)[right of = d] {$d$}; \node[state,shape=circle] (e1) [right of = e] {$e$}; \path[->] (c) edge node[above] {$\downarrow$} (c1) (d) edge node[above] {$\downarrow$} (d1) ; \end{tikzpicture}} \end{center} \end{block} \end{columns} \begin{itemize} \item hier ist ein Item \item und hier noch eines \end{itemize} \end{frame} \end{document}

Wie man sieht, geht das zweite Listing über den Block rechts hinaus und auch das erste Listing ist relativ weit nach rechts gerückt. Ich habe ja schon versucht, das ganze mit flushleft nach links zu verschieben, hat aber nichts geholfen. Wie mache ich es richtig?
Zweites Problem ist, dass die blocks wegen dem "Examples" auf unterschiedlichen höhen Anfangen und unterschiedlich groß sind. Wie kann ich die Höhe und Größe gleich gestalten?
Danke!
Guenter