Forgot password?
 Register account
View 1921|Reply 2

xshift yshift 与 coordinate 不和啊

[Copy link]

768

Threads

4685

Posts

310K

Credits

Credits
35004

Show all posts

isee Posted 2013-6-25 23:37 |Read mode


\coordinate[label=above:{$A$}] (A) at (0,5);
\coordinate[label=below:{$B$}] (B) at (0,0);
\draw [xshift=1cm,yshift=1cm] (A)--(B);


只能直接?

\draw [xshift=1cm,yshift=1cm] (0,5)--(0,0);

682

Threads

110K

Posts

910K

Credits

Credits
90973
QQ

Show all posts

kuing Posted 2018-10-10 10:11
最近我也遇到了这问题,挺郁闷的。
只好 \def\pa{(0,5)}\def\pb{(0,0)} 然后 \draw[xshift=1cm,yshift=1cm] \pa--\pb; 酱紫用……
  1. \tikz{
  2. \def\pa{(0,5)}\def\pb{(0,0)}
  3. \path \pa node[above]{$A$} \pb node[below]{$B$};
  4. \draw \pa--\pb;
  5. \draw[xshift=1cm,yshift=1cm]\pa--\pb;
  6. }
Copy the Code
PS、当 \def 在 tikz 内,就是局部的,不必担心冲突问题,换句话说,即使是 \def\pi{(0,5)},其影响顶多是当前这个图的 `\pi` 打不出来,而对外面是不会有影响嘀。

768

Threads

4685

Posts

310K

Credits

Credits
35004

Show all posts

 Author| isee Posted 2018-10-10 18:35
5年前的啊,你都记得。。

Mobile version|Discuz Math Forum

2025-6-5 07:52 GMT+8

Powered by Discuz!

× Quick Reply To Top Edit