%20.png)
직사각형을 기반으로 다음과 같은 모양을 만들었습니다(몇 가지 기능이 더 있지만 오류는 항상 동일함).
\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}%
}%
}%
대부분의 일이 나에게는 잘 작동합니다. 예를 들어:
\node[set,draw, below right=10ex of n, rotate=270, anchor=center] (sA) {};
노드를 완벽하게 배치하고 회전시킵니다. '왼쪽 아래'와 동일합니다.
하지만 내가 사용한다면
\node[set,draw, above left=10ex of n, rotate=270, anchor=center] (sA) {};
오류가 발생했습니다.
패키지 PGF 수학 오류: 알 수 없는 함수 'north'('north west').
'오른쪽 위'에서도 마찬가지입니다. 아직까지는 출력이 괜찮은 것 같습니다.
나는 tikz 3.0.0의 새 버전을 사용하고 있습니다.
이 정말 혼란스러운 오류를 방지할 수 있는 아이디어가 있나요?
감사합니다!