Tikz:节点形状因为有标签而改变吗?

Tikz:节点形状因为有标签而改变吗?

我肯定遗漏了一些重要的事情:

\begin{document}
\begin{tikzpicture}[
  dot/.style = {%
    draw, solid, fill = black, circle, inner sep = 0pt, minimum size = #1
  },
  dot/.default=1pt,
]

\coordinate (O) at (0, 0);
\coordinate (B) at (1, 0);

\node[dot] at (O){};
\node[dot] at (B) [below]{$B$};

\end{tikzpicture}
\end{document}

在此处输入图片描述

为什么没有标签的节点会输出预期的内容(左边的小点),而带有标签的节点会输出更大的点?

答案1

根据 Ronny 和我自己的评论,这里有一个最低限度的工作示例。

\documentclass{scrartcl}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[
  dot/.style = {%
    draw, solid,
    fill = red,
    circle,
    inner sep = 0pt,
    minimum size = #1,
  },
  dot/.default=1pt,
]

 \coordinate (O) at (0, 0);
 \coordinate (B) at (1, 0);
 \coordinate (C) at (2, 0);

 \node[dot] at (O){};
 \node[dot] at (B) [below]{$B$};
 \node[dot,label=below:{$C$}] at (C) {};

\end{tikzpicture}
\end{document}

相关内容