%20.png)
Criei a seguinte forma (tem mais algumas funcionalidades mas o erro é sempre o mesmo), baseada num retâ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}%
}%
}%
A maioria das coisas funciona muito bem para mim. Por exemplo:
\node[set,draw, below right=10ex of n, rotate=270, anchor=center] (sA) {};
posiciona o nó perfeitamente e o gira. O mesmo com 'abaixo à esquerda'.
Mas se eu usar
\node[set,draw, above left=10ex of n, rotate=270, anchor=center] (sA) {};
eu recebo o erro
Erro matemático do pacote PGF: Função desconhecida 'norte' (em 'noroeste').
O mesmo acontece com 'acima à direita'. A saída ainda parece estar boa.
Estou usando a nova versão do tikz 3.0.0.
Alguma idéia para evitar esse erro realmente perturbador?
Obrigado!