23

I want to draw a line from node A half-way to node B in TiKZ. How can I find express the end point?

  • 4
    This is described in section 13.5.3 The Syntax of Partway Modiers on p. 135 of the pgfmanual. – Jake Sep 27 '11 at 6:33
36

Use

\usetikzlibrary{calc}

and then

($ (A) !.5! (B) $)

to get the middle between node A and B.

  • 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 8:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.