%20.png)
Ich habe die folgende Form erstellt (sie hat einige weitere Funktionen, aber der Fehler ist immer derselbe), basierend auf einem Rechteck.
\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}%
}%
}%
Die meisten Dinge funktionieren bei mir einwandfrei. Zum Beispiel:
\node[set,draw, below right=10ex of n, rotate=270, anchor=center] (sA) {};
positioniert den Knoten perfekt und dreht ihn. Dasselbe mit „unten links“.
Aber wenn ich benutze
\node[set,draw, above left=10ex of n, rotate=270, anchor=center] (sA) {};
Ich erhalte den Fehler
Mathefehler im Paket PGF: Unbekannte Funktion „Nord“ (in „Nordwest“).
Dasselbe passiert mit „oben rechts“. Die Ausgabe scheint immer noch in Ordnung zu sein.
Ich verwende die neue Version von Tikz 3.0.0.
Irgendwelche Ideen, um diesen wirklich störenden Fehler zu vermeiden?
Danke schön!