I'm wanting to populate the cover page of my package with a border of examples of my package command's outputs, which are drawn in TikZ. To this end I'm using a tikzpicture
environment with the overlay
option. However, part of my command's syntax involves defining a local bounding box and using its anchors to draw other parts of the symbol, similar to the MWE below:
\documentclass[a4paper]{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[overlay]
\begin{scope} [local bounding box=M]
\draw (0, 0) rectangle (1, 1);
\end{scope}
\node [anchor=east] at (M.north west) {A};
\end{tikzpicture}
\end{document}
However, when I compile only the rectangle renders, the 'A' node does not:
When I compile with the overlay
option removed, the node renders:
Is it possible to get the node to render even when the overlay
option is set?