Wie kann man in einer minipage in TikZ geschweifte Klammern setzen?
Hallo zusammmen,
\documentclass[11pt, a4paper,twoside]{scrartcl}
\setlength{\parindent}{0em}
\usepackage{tikz}
\usetikzlibrary{shapes,snakes}
\usetikzlibrary{decorations.pathreplacing}
\begin{document}
\pagestyle{empty}
\tikzstyle{mybox} = [draw=black, very thick,
rectangle, rounded corners, inner sep=5pt, inner ysep=20pt]
\tikzstyle{fancytitle} =[fill=gray, text=white]
\begin{tikzpicture}
\node [mybox] (box){%
\begin{minipage}{\textwidth}
\begin{center}
\begin{tikzpicture}[>=latex, thick, decoration=brace]
\draw[<->] (0,0) -- (10cm,0);
\draw[decorate, yshift=2ex] (1,0) -- node[above=0.4ex] {Dazwischen muss $\sqrt{2}$ liegen} (9,0);
\draw (1,-2pt) -- (1,2pt) node[below=1ex]{1};
\draw (5,-2pt) -- (5,2pt) node[below=1ex]{1,5};
\draw (9,-2pt) -- (9,2pt) node[below=1ex]{2};
\end{tikzpicture}
\end{center}
\end{minipage}
};
\end{tikzpicture}
\begin{center}
\begin{tikzpicture}[>=latex, thick, decoration=brace]
\draw[<->] (0,0) -- (10cm,0);
\draw[decorate, yshift=2ex] (1,0) -- node[above=0.4ex] {Dazwischen muss $\sqrt{2}$ liegen} (9,0);
\draw (1,-2pt) -- (1,2pt) node[below=1ex]{1};
\draw (5,-2pt) -- (5,2pt) node[below=1ex]{1,5};
\draw (9,-2pt) -- (9,2pt) node[below=1ex]{2};
\end{tikzpicture}
\end{center}
\end{document}
Wieso bekomme ich innerhalb der minipage keine geschweifte Klammern angezeigt?