hongyangqin / HyNote

HyNote 个人笔记
8 stars 4 forks source link

[Latex][Tikz] 节点或坐标加上一定偏移 #63

Open hongyangqin opened 7 years ago

hongyangqin commented 7 years ago

解决办法

\draw[line width=4] ([xshift=0.3pt]coorda) -- ([xshift=-0.3pt]coordb);

\draw[line width=4] % Set pen properties
(coorda) % move to coorda labeled point. This is the current point now.
++(0.3pt,0) % move the pen 0.3pt to the right relative to coorda
-- %put the pen down
(coordb) % draw the line. This is the current point now.
 ++(-0.3pt,0) % lift the pen and move 0.3pt to the left relative to coordb, 
              % if there was a -- here it would still draw it
; % we are done

    \draw[-Latex]
    (exec.south)%定点
    --%放下画笔
    ++(0,-15pt)%画笔下移15pt
    -|(learning.south)%移动到目的点
    ;

参考

How can I add offsets to coordinates in tikz?