%20.png)
He creado la siguiente forma (tiene algunas características más pero el error es siempre el mismo), basada en un rectángulo.
\pgfdeclareshape{set}{
%Like in rectangle but without all the separators and height=width
\savedanchor\northeast{%
\pgfmathsetlength\pgf@xb{\pgfkeysvalueof{/pgf/minimum width}}%
\pgf@x=.5\pgf@xb%
\pgf@y=.5\pgf@xb%
}%
\savedanchor\southwest{%
\pgfmathsetlength\pgf@xb{\pgfkeysvalueof{/pgf/minimum width}}%
\pgf@x=-.5\pgf@xb%
\pgf@y=-.5\pgf@xb%
}%
% Inherit from rectangle
\inheritanchorborder[from=rectangle]%
\inheritanchor[from=rectangle]{center}%
\inheritanchor[from=rectangle]{north}%
\inheritanchor[from=rectangle]{south}%
\inheritanchor[from=rectangle]{west}%
\inheritanchor[from=rectangle]{east}%
\inheritanchor[from=rectangle]{north west}%
\inheritanchor[from=rectangle]{north east}%
\inheritanchor[from=rectangle]{south west}%
\inheritanchor[from=rectangle]{south east}%
\backgroundpath{%
\pgfpathrectanglecorners{\southwest}{\northeast}%
}%
}%
La mayoría de las cosas funcionan bien para mí. Por ejemplo:
\node[set,draw, below right=10ex of n, rotate=270, anchor=center] (sA) {};
posiciona el nodo perfectamente y lo gira. Lo mismo con "abajo a la izquierda".
Pero si uso
\node[set,draw, above left=10ex of n, rotate=270, anchor=center] (sA) {};
me sale el error
Error matemático del paquete PGF: función desconocida 'norte' (en 'noroeste').
Lo mismo ocurre con 'arriba a la derecha'. La salida todavía parece estar bien.
Estoy usando la nueva versión de tikz 3.0.0.
¿Alguna idea para evitar este error realmente perturbador?
¡Gracias!