Is there any possibility of “unsetting” a PGF/TikZ key? By “unsetting” I mean to remove the key from the list of keys and make PGF/TikZ behave as if it was never specified. To clarify, consider this minimal working example:
\documentclass{minimal}
\usepackage{tikz}
\usetikzlibrary{shapes.misc}
\begin{document}
\begin{tikzpicture}
\tikz\node[draw=red, circle] {Short 1};
\node[draw, text width=3cm] (r1) {
\tikz\node[draw=blue, circle] {Short 2};
};
\end{tikzpicture}
\end{document}
In the resulting output, I would expect the two circles to be of equal size (except for a tiny difference because of “1” vs. “2”). However, the second (blue) circle inherits the text width property from the parent node. Now, I would like to have that (blue) circle behave as if text width was never specified for it. How do I achieve this?
What’s working, of course, is manually specifying a different text width, but that’s not an option for me because I would like to have dynamic node sizes inside another node. Using minimum width/height on the outer node instead of text width does not produce satisfactory results for my eventual use-case either (which is, BTW, to have nodes of the same size, some containing text, some containing other nodes) – I could manage to use that, but it would mean significant overhead of creating additional nodes, as far as I see it.
The question might, of course, be generalized into something along the lines of “How do I put a tikzpicture
inside a TikZ node that does not inherit the keys set for the parent node?”
I hope to have made myself clear and that there is an easy answer to my question ;-)