意外发现 coordinate 后重新定义的同名称并不冲突
定义交点 name intersections 时重复,发现重复后之前的不影响,之后的用新定义TiKZ 给个 example 呗[img]https://qzonestyle.gtimg.cn/qzone/em/e246.gif[/img] [b]回复 [url=http://kuing.orzweb.net/redirect.php?goto=findpost&pid=39588&ptid=7931]2#[/url] [i]kuing[/i] [/b]
\coordinate [label=below:{A}] (a) at (0,0);
\coordinate [label=below:{B}] (b) at (2,0);
\draw (a)--(b);
\coordinate [label=below:{C}] (b) at (0,2);
\draw (a)--(b); [b]回复 [url=http://kuing.orzweb.net/redirect.php?goto=findpost&pid=39594&ptid=7931]3#[/url] [i]isee[/i] [/b]
原来是这个意思……
不过……这其实不难发现吧,也没什么不合理之处……
我顺便说一个,其实这样玩也不会报错:[code]\begin{tikzpicture}
\coordinate [label=below:{A}] (a) at (0,0);
\coordinate [label=below:{B}] (b) at (2,0);
\draw (a)--(b);
\coordinate [label=below:{C}] (b) at (0,2);
\draw[blue] (a)--(b);
\end{tikzpicture}
\begin{tikzpicture}
\draw[red] (a)--(b);
\end{tikzpicture}[/code]效果:[attach]9774[/attach]
也就是说 coordinate 的点在下一个图其实还可以继续用。 [b]回复 [url=http://kuing.orzweb.net/redirect.php?goto=findpost&pid=39599&ptid=7931]4#[/url] [i]kuing[/i] [/b]
晕迷哦,看来作者很有想法~ TiKZ 相当宽松,基本上顺序无关,基本上随时“添什么东西”都没太问题
页:
[1]