Forgot password?
 Create new account
View 1806|Reply 2

xshift yshift 与 coordinate 不和啊

[Copy link]

801

Threads

4889

Posts

310K

Credits

Credits
36169

Show all posts

isee Posted at 2013-6-25 23:37:11 |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);

700

Threads

110K

Posts

910K

Credits

Credits
94177
QQ

Show all posts

kuing Posted at 2018-10-10 10:11:49
最近我也遇到了这问题,挺郁闷的。
只好 \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` 打不出来,而对外面是不会有影响嘀。

801

Threads

4889

Posts

310K

Credits

Credits
36169

Show all posts

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

手机版Mobile version|Leisure Math Forum

2025-4-21 01:31 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list