
興味本位で自分自身に尋ねました。mark=<...>
を に追加する可能性はあるでしょうか\coordinate
?
\documentclass[margin=3cm]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\coordinate[label={[mark=*, text=red,left]:A}] (A) at (0,2);
\end{tikzpicture}
\end{document}
注: この方法は
\foreach \P in {....} \draw[fill=white] (\P) circle (1.5pt);
明らかです。
答え1
価値があるかどうかは別として、これはプロットマークを追加し、尊重しますmark options
。
\documentclass[margin=3cm]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[cmark/.style={append after command={plot[only marks,mark=#1] coordinates {(\tikzlastnode)}}}]
\coordinate[label={[text=red,left]:A},cmark={*,mark options={fill=white}}]
(A) at (0,2);
\path (2,2) node[circle,inner sep=1.5pt,draw,label={[text=red,left]:B}] (B){} ;
\draw[stealth-stealth] (A) to[out=90,in=90] (B);
\end{tikzpicture}
\end{document}
ただし、ノードを使用するオプションと比較して利点は見当たりません。むしろ、どちらかを矢印で接続すると、図に示すようにノードのみが境界を認識するため、欠点があると思います。(もちろん、ノードの場合は、円弧パスでの代わりにB
を使用して、中心に接続することもできます。)B.center
B