0

I would like to place a circle between two node, something like:

\node [sum, pos=($(sys1.east)!0.5!(sys2.west)$)](sum1) {};

How can I do that?

  • \node[sum] (sum) at ($(sys1)!0.5!(sys2)$)) {}; – user11232 Sep 17 '15 at 10:07
2
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{positioning,calc}
\begin{document}
  \begin{tikzpicture}
    \node (sys1) {sys1};
    \node[right=3cm of sys1] (sys2) {sys2};
    \node[draw,circle,inner sep=2pt] (sum) at ($(sys1)!0.5!(sys2)$) {};
    %or
    %\path (sys1) -- node[midway,draw,circle,inner sep=2pt] {} (sys2);
    %or
    %\draw ($(sys1)!0.5!(sys2)$) circle (2pt);
  \end{tikzpicture}
\end{document}

enter image description here

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.