![tikz 中点旁边的标签](https://linux22.com/image/375388/tikz%20%E4%B8%AD%E7%82%B9%E6%97%81%E8%BE%B9%E7%9A%84%E6%A0%87%E7%AD%BE.png)
我经常绘制 tikz 图,其中我分别指定节点和标签:
\tikzset{%
dot/.style={circle, draw, fill=black, inner sep=0pt, minimum width=4pt},
top/.style={anchor=south, inner sep=5pt},
}
\begin{tikzpicture}
\node[dot] (A) at (0,0) {};
\node[top] at (A) {label};
\end{tikzpicture}
这完全没问题,但感觉可以写得更简洁,例如:
\node[dot-top] (A) at (0,0) {label};
我该如何做呢?