I want to draw a line from node A half-way to node B in TiKZ. How can I find express the end point?
Asked
Active
Viewed 8,120 times
28
Tim N
- 10,219
- 13
- 63
- 88
1 Answers
47
Use
\usetikzlibrary{calc}
and then
($ (A) !.5! (B) $)
to get the middle between node A and B.
Martin Scharrer
- 262,582
-
It seems like in the new versions of the manual there is Euler tutorial and the calc explanation is missing. – somenxavier Nov 19 '15 at 08:38
13.5.3 The Syntax of Partway Modierson p. 135 of the pgfmanual. – Jake Sep 27 '11 at 06:33