pyrolysis
28-06-2009, 19:00
Hi hab hier en Code pgf/tikz das in einem article problemlos läuft:
\documentclass[a4paper,10pt]{article}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows,shadows}
\begin{document}
\section{PGF TEST}
\begin{figure}[htbp]
\begin{center}
\begin{tikzpicture}[point/.style={coordinate},
sty/.style={rectangle,draw=black!50,thick,inner sep=0pt,minimum size=10mm},
skip loop/.style={to path={-- ++(0,#1) -| node[below,swap] {$S=0$} (\tikztotarget)}},>=stealth',tip/.style={<-,rounded corners}]
\matrix[row sep=1mm,column sep=15mm,ampersand replacement=\&] {
% Symbolreihe
\node[sty] (lin) [label=above:{$(C A B)$}] {0 0 0}; \& \node[point] (p1) {.}; \&
\node[sty] (mit) {0 1 0}; \& \node[point] (p2) {.}; \&
\node[sty] (rec) {1 1 0}; \& \node[point] (p3) {.}; \&
\node[sty] (attrak) {1 1 1}; \\
};
\draw (mit) edge [tip] node[auto,swap] {$t=\tau_a$} (lin);
\draw (rec) edge [tip] node[auto,swap] {$t=\tau_a+\tau_c$} (mit);
\draw (attrak) edge [tip] node[auto,swap] {$t=\tau_b$} (rec);
\draw (rec) edge [-] node[auto,swap] {$t=\tau_a+\tau_c+\tau_b$} (attrak);
\draw (p1) edge [->,rounded corners,skip loop=-10mm] (lin);
\draw [->,rounded corners] (attrak.east) .. controls +(right:10mm) and +(up:10mm).. (attrak.north);
\end{tikzpicture}
\caption{So schauts aus.}
\label{fig:boolflow}
\end{center}
\end{figure}
\end{document}
Wollte das nun direkt in meine Beamer Präsi übernehmen dabei kommt es aber leider zu einer Reihe von Fehlermeldungen.
\documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows,shadows}
\usepackage{default}
\begin{document}
\begin{frame}
\begin{figure}[htbp]
\begin{center}
\begin{tikzpicture}[point/.style={coordinate},
sty/.style={rectangle,draw=black!50,thick,inner sep=0pt,minimum size=10mm},
skip loop/.style={to path={-- ++(0,#1) -| node[below,swap] {$S=0$} (\tikztotarget)}},>=stealth',tip/.style={<-,rounded corners}]
\matrix[row sep=1mm,column sep=15mm,ampersand replacement=\&] {
% Symbolreihe
\node[sty] (lin) [label=above:{$(C A B)$}] {0 0 0}; \& \node[point] (p1) {.}; \&
\node[sty] (mit) {0 1 0}; \& \node[point] (p2) {.}; \&
\node[sty] (rec) {1 1 0}; \& \node[point] (p3) {.}; \&
\node[sty] (attrak) {1 1 1}; \\
};
\draw (mit) edge [tip] node[auto,swap] {$t=\tau_a$} (lin);
\draw (rec) edge [tip] node[auto,swap] {$t=\tau_a+\tau_c$} (mit);
\draw (attrak) edge [tip] node[auto,swap] {$t=\tau_b$} (rec);
\draw (rec) edge [-] node[auto,swap] {$t=\tau_a+\tau_c+\tau_b$} (attrak);
\draw (p1) edge [->,rounded corners,skip loop=-10mm] (lin);
\draw [->,rounded corners] (attrak.east) .. controls +(right:10mm) and +(up:10mm).. (attrak.north);
\end{tikzpicture}
\caption{So schauts aus.}
\label{fig:boolflow}
\end{center}
\end{figure}
\end{frame}
Weiss jmd zufällig woran das liegen könnte? Da ich das jetzt nicht Stück für Stück in der Beamer Klasse erstellt habe bin ich vollkommen ratlos.
\documentclass[a4paper,10pt]{article}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows,shadows}
\begin{document}
\section{PGF TEST}
\begin{figure}[htbp]
\begin{center}
\begin{tikzpicture}[point/.style={coordinate},
sty/.style={rectangle,draw=black!50,thick,inner sep=0pt,minimum size=10mm},
skip loop/.style={to path={-- ++(0,#1) -| node[below,swap] {$S=0$} (\tikztotarget)}},>=stealth',tip/.style={<-,rounded corners}]
\matrix[row sep=1mm,column sep=15mm,ampersand replacement=\&] {
% Symbolreihe
\node[sty] (lin) [label=above:{$(C A B)$}] {0 0 0}; \& \node[point] (p1) {.}; \&
\node[sty] (mit) {0 1 0}; \& \node[point] (p2) {.}; \&
\node[sty] (rec) {1 1 0}; \& \node[point] (p3) {.}; \&
\node[sty] (attrak) {1 1 1}; \\
};
\draw (mit) edge [tip] node[auto,swap] {$t=\tau_a$} (lin);
\draw (rec) edge [tip] node[auto,swap] {$t=\tau_a+\tau_c$} (mit);
\draw (attrak) edge [tip] node[auto,swap] {$t=\tau_b$} (rec);
\draw (rec) edge [-] node[auto,swap] {$t=\tau_a+\tau_c+\tau_b$} (attrak);
\draw (p1) edge [->,rounded corners,skip loop=-10mm] (lin);
\draw [->,rounded corners] (attrak.east) .. controls +(right:10mm) and +(up:10mm).. (attrak.north);
\end{tikzpicture}
\caption{So schauts aus.}
\label{fig:boolflow}
\end{center}
\end{figure}
\end{document}
Wollte das nun direkt in meine Beamer Präsi übernehmen dabei kommt es aber leider zu einer Reihe von Fehlermeldungen.
\documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows,shadows}
\usepackage{default}
\begin{document}
\begin{frame}
\begin{figure}[htbp]
\begin{center}
\begin{tikzpicture}[point/.style={coordinate},
sty/.style={rectangle,draw=black!50,thick,inner sep=0pt,minimum size=10mm},
skip loop/.style={to path={-- ++(0,#1) -| node[below,swap] {$S=0$} (\tikztotarget)}},>=stealth',tip/.style={<-,rounded corners}]
\matrix[row sep=1mm,column sep=15mm,ampersand replacement=\&] {
% Symbolreihe
\node[sty] (lin) [label=above:{$(C A B)$}] {0 0 0}; \& \node[point] (p1) {.}; \&
\node[sty] (mit) {0 1 0}; \& \node[point] (p2) {.}; \&
\node[sty] (rec) {1 1 0}; \& \node[point] (p3) {.}; \&
\node[sty] (attrak) {1 1 1}; \\
};
\draw (mit) edge [tip] node[auto,swap] {$t=\tau_a$} (lin);
\draw (rec) edge [tip] node[auto,swap] {$t=\tau_a+\tau_c$} (mit);
\draw (attrak) edge [tip] node[auto,swap] {$t=\tau_b$} (rec);
\draw (rec) edge [-] node[auto,swap] {$t=\tau_a+\tau_c+\tau_b$} (attrak);
\draw (p1) edge [->,rounded corners,skip loop=-10mm] (lin);
\draw [->,rounded corners] (attrak.east) .. controls +(right:10mm) and +(up:10mm).. (attrak.north);
\end{tikzpicture}
\caption{So schauts aus.}
\label{fig:boolflow}
\end{center}
\end{figure}
\end{frame}
Weiss jmd zufällig woran das liegen könnte? Da ich das jetzt nicht Stück für Stück in der Beamer Klasse erstellt habe bin ich vollkommen ratlos.