Here's a minimal tikz figure:
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\node [circle,draw] {A};
\end{tikzpicture}
\end{document}
That circle around the 'A' is bigger than I'd like. I want it to look more like this. (The 'A' is meant to be the same size as in the previous image, and the circle smaller.)
How can I achieve that? There are several previous questions about changing the size of a node, but they seem to be either about the size of an empty node, or making it bigger, which can be achieved with minimum size
or inner sep
. (I'm unsure about what these commands do or what the difference is, but they don't seem to be what I want.) My goal is just to specify the radius of the node exactly, regardless of the size of its label.
The circle is a node in a graph, and should behave as a node of the correct size when connecting arrows to it and so on.
I guess I could just write a \newcommand
to draw an empty node of the correct size and then write the label on top of it, but it feels like that's not the intended way to use tikz, so I'm wondering what the proper way is.
inner sep
or do you want an alignment?inner sep
. (I said so in the question.) But that isn't the point, necessarily. I want the node to have a specified radius, independently of the label's bounding box, that's all.node
is a box that contains text. This default box is rectangular. If it perfectly frames the text, the edges of the box touch the text, which is unattractive. By default TikZ leaves a space between the text and the edges of the box which is defined by the lengthìnner sep
(initially is 0.3333em). When the node is a circle, this circle is circumscribed to the rectangular node which is drawn by default. Translated with www.DeepL.com/Translator (free version)