
我有以下問題:在 a 中,\pgfdeclareshape
我有以下用於保存尺寸的程式碼:
\saveddimen{\long@sal}{
\pgf@x=\pgfkeysvalueof{/tikz/longitud salidas}\unidad@medicion
\advance\pgf@x\y@colect
}
然後,當我嘗試使用時:
\foreach \n in {1,...,7}{
\xdef\doanchor{
\noexpand\anchor{o\n}{
\@tempdima=2\x@colect % \sep@sal
\divide\@tempdima\pgfkeysvalueof{/tikz/salidas}
\noexpand\pgfpoint{
-\x@colect + 0.5\@tempdima + (\n-1)*\@tempdima
}{\long@sal}
}
}
\doanchor
}
我收到錯誤:! Undefined control sequence.
\long@sal
我確信問題是由於。請問,有人可以幫助我嗎?
答案1
最後,解決方案很簡單。包括\newdimen\long@sal
之前\pfgdeclareshape
,它可以正常工作。