tikz ノード ピン内の改行

tikz ノード ピン内の改行

TikZ でピン ノード内の改行を機能させるにはどうすればよいですか?

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

試してみましたalign=centerが、典型的なノードとしては機能しませんでした。

答え1

これは私にとってはうまくいきます:

\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}

ここに画像の説明を入力してください

関連情報