changeset 11:c2d858c9c53e

move example graph into example block
author Markus Kaiser <markus.kaiser@in.tum.de>
date Tue, 05 Nov 2013 00:02:11 +0100
parents 25d752768544
children c903f55b68de
files notes/tex/basics.tex
diffstat 1 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/notes/tex/basics.tex	Tue Oct 29 00:15:10 2013 +0100
+++ b/notes/tex/basics.tex	Tue Nov 05 00:02:11 2013 +0100
@@ -341,16 +341,15 @@
     \begin{example}[]
         Sei $R \subseteq [4] \times [4]$ eine Relation über den natürlichen Zahlen.
         \[ R \defeq \left\{ (1, 1), (1, 2), (2, 3), (2, 4), (3, 3), (3, 4), (4, 3) \right\}\]
-    \end{example}
 
-    \centering
-    \begin{tikzpicture}[x=5em, y=2.5em]
-        \path   (0, 0) node[pretty] (1) {$1$}
-                +(1, 0) node[pretty] (2) {$2$}
-                +(2, 1) node[pretty] (3) {$3$}
-                +(2, -1) node[pretty] (4) {$4$};
+        \centering
+        \begin{tikzpicture}[x=5em, y=2.5em]
+            \path   (0, 0) node[pretty] (1) {$1$}
+            +(1, 0) node[pretty] (2) {$2$}
+            +(2, 1) node[pretty] (3) {$3$}
+            +(2, -1) node[pretty] (4) {$4$};
 
-        \path[edge]
+            \path[edge]
             (1) edge[loop left] (1)
             (1) edge (2)
             (2) edge (3)
@@ -358,7 +357,8 @@
             (3) edge[loop above] (3)
             (3) edge[bend left] (4)
             (4) edge[bend left] (3);
-    \end{tikzpicture}
+        \end{tikzpicture}
+    \end{example}
 \end{frame}
 
 \begin{frame}