Seite 1 von 1

Vektor/Matrix in Tikz Node

Verfasst: So 8. Mai 2011, 17:23
von juk789
Hallo,
ich versuche jetzt schon länger, einen Vektor in einem Tikz Node unterzubringen:
\begin{tikzpicture}[]

\node (abc) [] {
	$\begin{pmatrix} x \\ y \\ z \end{pmatrix}$
};

\end{tikzpicture}
Wegen der \\ scheint das aber nicht zu funktionieren ("No line here to end"). Ich habe zwar schon einige Lösungen für Zeilenumbrüche in Nodes gefunden, aber noch keine für diesen Fall, wo der Umbruch innerhalb einer Matrix, innerhalb einer Math-Umgebung stattfindet.
Hat jemand eine Lösung parat? :oops:

Schonmal Danke! :D

Verfasst: So 8. Mai 2011, 17:29
von bloodworks
Wo ist das Problem?
Das hier funktioniert einwandfrei:
\documentclass{scrartcl} 

\usepackage{amsmath, tikz}

\begin{document} 


\begin{tikzpicture}

\node (abc) { 
   $\begin{pmatrix} x \\ y \\ z \end{pmatrix}$ 
}; 

\end{tikzpicture}

\end{document}
Bei so was hilft immer ein Minimalbeispiel (Link siehe Signatur).

Verfasst: So 8. Mai 2011, 17:34
von juk789
Ich hatte amsmath nicht geladen... :shock:

Vielen Dank :lol: