Zeilenumbruch im Tikz-Knoten-Pin

Zeilenumbruch im Tikz-Knoten-Pin

Wie bekomme ich den Zeilenumbruch innerhalb eines Pin-Knotens in TikZ zum Laufen?

\node[pin={\angle+0.5*\percent*3.6:hi\\there}] at (120:3) {};

Ich habe es versucht align=center, aber es hat nicht als typischer Knoten funktioniert.

Antwort1

Das funktioniert bei mir:

\documentclass[tikz,border=2mm]{standalone} 
\usetikzlibrary{positioning}

\begin{document}
\begin{tikzpicture}
 \node[pin={[align=center]30:{hi\\ there}}] at (120:3) {};
\end{tikzpicture}
\end{document}

Bildbeschreibung hier eingeben

verwandte Informationen