I'd like to get two or three nodes linking to a ground symbol (this is not an electric circuit), as in this attempt:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{positioning}
\usepackage{circuitikz}
\begin{document}
\begin{tikzpicture}
\node[](a){X};
\node[](b)[right=of a]{Y};
\node[ground](g)[below=of a]{};
\draw[-] (a.south) -- (g.north);
\draw[-] (b.south) -- (g.north);
\end{tikzpicture}
\end{document}
But this fails with the following error:
! Package PGF Math Error: Unknown function `north' (in 'north').
See the PGF Math package documentation for explanation.
Type H <return> for immediate help.
...
l.12 \node[ground](g)[below=of a.east]{};
?
And yet, TeX still outputs the PDF, which seems correct... What am I doing wrong?
(I am willing to use another library instead of circuitikz if it makes things easier)
edit: included an example with two nodes linking to ground, not only one
