Graphics, Figures & Tablestikz nodes connection problem

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Bahurin
Posts: 5
Joined: Mon Dec 30, 2013 2:33 pm

tikz nodes connection problem

Post by Bahurin »

Dear all!
I cannot to find solution of my problems.
I created short code:

Code: Select all

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes, snakes, arrows}

\tikzset{
	sum/.style={circle,draw=black,fill=white,thick, inner sep=0pt,minimum size=6mm},
	gain/.style={regular polygon,regular polygon sides=3, draw = black, fill=white,thick, minimum size=6mm},
	none/.style={draw=none,fill=none}}

\begin{document}
	
	\begin{tikzpicture}[thick, >=stealth]
		
		\node(w) at (0,0) [gain, rotate = -90]  {};	
		\node(sum0) at ( 2,0) [sum] {$+$};
		\draw[->] (w) -- (sum0) ;
		\draw[*->] (1,0) -- (1,-1) ;
		

	\end{tikzpicture}
	
	
\end{document}
I created 2 nodes: triangle and circle and I want to connect nodes (see picture).
arrows.png
arrows.png (3.29 KiB) Viewed 5303 times
But line from triangle node likes bad. Also I want to create branch from my connection like this

Code: Select all

\draw[*->] (1,0) -- (1,-1) ;
but beggining marker also just touch main line.

Could you tell me how can I solve these problems?
Thanks!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

tikz nodes connection problem

Post by Stefan Kottwitz »

Hi Bahurin,

very good minimal example and picture! So it makes fun to read and to test it.

You could simply extend the lines, that is, shorten by a negative value:

Code: Select all

     \draw[->,  shorten <=-1] (w)   -- (sum0) ;
     \draw[*->, shorten <=-3] (1,0) -- (1,-1) ;
arrows.png
arrows.png (9.68 KiB) Viewed 5295 times
Stefan
LaTeX.org admin
Post Reply