Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

share|improve this question
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
    
@Jake: Thank you! –  Tim N Sep 27 '11 at 6:34
add comment

1 Answer

up vote 19 down vote accepted

Use

\usetikzlibrary{calc}

and then

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

to get the middle between node A and B.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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