TikZ 中的聲明\foreach
正在移動我的 ConTeXt 圖中的座標;經過一番實驗,我發現這是由兩個指令\usemodule[french]
和引起的\setcharacterspacing[frenchpunctuation]
(任何一條指令都會導致問題)。這是 MWE 和結果:
\usemodule[tikz]
\starttext
\starttikzpicture[declare function={a=1; dth=90;}]
\foreach \i in {0, 1, ..., 3} {
\draw (\i*dth: a) ++ ({(\i-0.5)*dth}: a) coordinate (A-\i)
arc ({(\i-0.5)*dth}: {(\i+0.5)*dth}: a) coordinate (B-\i);
};
\foreach \i/\j in {0/1, 1/2, 2/3, 3/0} {
\draw [thin] (B-\i) -- (A-\j);
}
\stoptikzpicture
\usemodule[french]
\setcharacterspacing[frenchpunctuation]
\starttikzpicture[declare function={a=1; dth=90;}]
\foreach \i in {0, 1, ..., 3} {
\draw (\i*dth: a) ++ ({(\i-0.5)*dth}: a) coordinate (A-\i)
arc ({(\i-0.5)*dth}: {(\i+0.5)*dth}: a) coordinate (B-\i);
};
\foreach \i/\j in {0/1, 1/2, 2/3, 3/0} {
\draw [thin] (B-\i) -- (A-\j);
}
\stoptikzpicture
\stoptext
TikZ 和 LaTeX 中的法語包之間的互動存在許多問題,但我在論壇上找不到任何有關此行為的資訊。我嘗試了在 LaTeX 中工作的\shorthandoff
/對,但 ConTeXt 引發了錯誤。這個問題有解決方法嗎?\shorthandon
Undefined Control Sequence
先感謝您,