# How to prevent an object from moving when adding a node label [duplicate]

I am trying to make a vertical column of various moon phases using a macro that generates circles, but when I add a node label to a circle (to designates that it is a full moon) it shifts the circle that contains the label slightly to the right.

\documentclass[leqno,12pt]{article}
\usepackage{tikz}
\usetikzlibrary{calendar,fpu}

\newcommand{\moon}[2][]{%
\def\lunarage{#2}%
\pgfmathsetmacro\textF{ifthenelse(\lunarage==15,"F","")}
\tikz []{
\node[color=black] (0,0) {\textF};
%
}%
}
\begin{document}\noindent%
\foreach \d in {0,1,...,30}{%
\moon[]{\d}  \\   }
\end{document}


THANKS for any help!

## marked as duplicate by Ignasi, Andrew Swann, ChrisS, Svend Tveskæg, Paul GaboritMar 9 '16 at 9:29

The problem is the size of your nodes. Those are wider (and higher) than the label, thereby making the tikzpicture slightly wider, which results in the shift (your tikz-environments are left aligned). If you set inner sep and outer sep to zero, you get the desired result:

\documentclass[leqno,12pt]{article}
\usepackage{tikz}
\usetikzlibrary{calendar,fpu}

\newcommand{\moon}[2][]{%
\def\lunarage{#2}%
\pgfmathsetmacro\textF{ifthenelse(\lunarage==15,"F","")}
\tikz []{