悠闲数学娱乐论坛(第2版)'s Archiver

isee 发表于 2021-5-31 21:10

意外发现 coordinate 后重新定义的同名称并不冲突

定义交点 name intersections 时重复,发现重复后之前的不影响,之后的用新定义

TiKZ

kuing 发表于 2021-5-31 23:53

给个 example 呗[img]https://qzonestyle.gtimg.cn/qzone/em/e246.gif[/img]

isee 发表于 2021-6-1 00:01

[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);

kuing 发表于 2021-6-1 00:15

[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 的点在下一个图其实还可以继续用。

isee 发表于 2021-6-1 00:18

[b]回复 [url=http://kuing.orzweb.net/redirect.php?goto=findpost&pid=39599&ptid=7931]4#[/url] [i]kuing[/i] [/b]


    晕迷哦,看来作者很有想法~

isee 发表于 2021-6-1 00:19

TiKZ 相当宽松,基本上顺序无关,基本上随时“添什么东西”都没太问题

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.