Forgot password
 Register account
View 1927|Reply 2

xshift yshift 与 coordinate 不和啊

[Copy link]

764

Threads

4672

Posts

27

Reputation

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

673

Threads

110K

Posts

218

Reputation

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` 打不出来,而对外面是不会有影响嘀。

764

Threads

4672

Posts

27

Reputation

Show all posts

original poster isee posted 2018-10-10 18:35
5年前的啊,你都记得。。

Quick Reply

Advanced Mode
B Color Image Link Quote Code Smilies
You have to log in before you can reply Login | Register account

$\LaTeX$ formula tutorial

Mobile version

2025-7-20 13:37 GMT+8

Powered by Discuz!

Processed in 0.016042 seconds, 22 queries