Linie durch Pfeile (tikz)

Antwort erstellen


Diese Frage dient dazu, das automatisierte Versenden von Formularen durch Spam-Bots zu verhindern.
Smilies
:D :) :( :o :shock: :? 8) :lol: :-x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen:

BBCode ist eingeschaltet
[img] ist eingeschaltet
[flash] ist ausgeschaltet
[url] ist eingeschaltet
Smilies sind eingeschaltet

Die letzten Beiträge des Themas

Ich habe die Datenschutzerklärung gelesen und bin damit einverstanden.

   

Wenn du eine Datei oder mehrere Dateien anhängen möchtest, gib die Details unten ein.

Ansicht erweitern Die letzten Beiträge des Themas: Linie durch Pfeile (tikz)

Re: Linie durch Pfeile (tikz)

von basti-fantasti-48 » Mi 12. Jun 2024, 14:06

mit der zweiten Lösung passt es. Erste komischerweise nicht aber eine reicht mir ja xd. danke

Re: Linie durch Pfeile (tikz)

von Stefan Kottwitz » Mi 12. Jun 2024, 13:12

Dann machst Du irgendwas anders, denn bei mir geht es, und sieht wie folgt aus:
pfeile.png
Stefan

Re: Linie durch Pfeile (tikz)

von basti-fantasti-48 » Mi 12. Jun 2024, 13:05

ändert nichts bei mir. Habe es in der Präambel

Re: Linie durch Pfeile (tikz)

von Stefan Kottwitz » Mi 12. Jun 2024, 11:53

Du könntest die Pfeilspitze als postaction/decoration definieren:
\tikzstyle{arrow} = [thick, postaction={decorate,
  decoration={markings, mark=at position 1 with {\arrow{stealth};}}}]
Oder mit der neueren Syntax stattdessen:
\tikzset{arrow/.style = {thick, postaction={decorate,
  decoration={markings, mark=at position 1 with {\arrow{stealth};}}}}}
Stefan

Linie durch Pfeile (tikz)

von basti-fantasti-48 » Mi 12. Jun 2024, 11:35

\documentclass[
11pt,					% Schriftgröße
paper=a4,
DIV=13,				% Seitenlayout (Satzspiegel)
parskip=half,			% Abstand zwischen Absätzen
%twoside,				% Doppelseitig
%openright,			% neues Kapitel rechts
%  cleardoublepage,
bibtotoc,				% Literaturverzeichis in Inhaltsverzeichnis
headsepline,			% Kopfzeilentrennlinie
headings,	
%  draft,				% Korrekturfassung
]{scrreprt}		% scrartcl	

% Eingabecodierung
\usepackage[utf8]{inputenc}

% Schriftcodierung
\usepackage[T1]{fontenc}

% Sprachraum
\usepackage[ngerman]{babel}

% Blindtext
\usepackage{blindtext}

% Schrifteinstellungen
\usepackage{lmodern} 		% Vektorschrift
\renewcommand{\familydefault}{\sfdefault} % Serifenlose Schrift
%\usepackage{sansmath}  	% Mathe-Schrift ohne Serifen
%\sansmath 							% aktiviert serifenlose Matheschrift
\usepackage{microtype}	% harmonische Typenverteilung
%\usepackage{hyperref}

% Literatur einbinden
\usepackage{csquotes}	% Steuerung der Anführungszeichen
\usepackage[
backend=biber,			% Sortier-Compiler
style=numeric-comp,	% Zitationsstil
block=ragged,
]{biblatex}

\addbibresource{ref/Bibliothek.bib}

\usepackage{booktabs}

% Mathemodus
\usepackage{amsmath,amssymb}

% Trennung
\hyphenation{Crash-zo-ne}

% Bilder einbinden
\usepackage{graphicx}
\graphicspath{{bilder/}}
\usepackage{svg}

% Kopf- und Fußzeile
\usepackage[headsepline,automark]{scrlayer-scrpage}
\clearpairofpagestyles
\ihead{\rightmark}
\cfoot{\pagemark}
\renewcommand*\chaptermarkformat{}
\renewcommand*\chapterpagestyle{scrheadings}

%Nummerierung durchgehend im gesamten Dokument
\usepackage{chngcntr}% Nummerierung ohne Kapitel 
\counterwithout{equation}{section} 
\counterwithout{equation}{chapter}
\counterwithout{figure}{section}
\counterwithout{figure}{chapter}
\counterwithout{table}{section}
\counterwithout{table}{chapter}


\usepackage{pgfkeys}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric, arrows}

\usepackage{struktex}

\tikzstyle{startstop} = [rectangle, rounded corners, 
minimum width=3cm, 
minimum height=1cm,
text centered, 
draw=black, 
fill=red!30]

\tikzstyle{io} = [trapezium, 
trapezium stretches=true, % A later addition
trapezium left angle=70, 
trapezium right angle=110, 
minimum width=3cm, 
minimum height=1cm, text centered, 
draw=black, fill=blue!30]

\tikzstyle{process} = [rectangle, 
minimum width=3cm, 
minimum height=1cm, 
text centered, 
text width=3cm, 
draw=black, 
fill=orange!30]

\tikzstyle{decision} = [diamond, 
minimum width=3cm, 
minimum height=1cm, 
text centered, 
draw=black, 
fill=green!30]
\tikzstyle{arrow} = [thick,->,>=stealth]
\usepackage{pgfplots}\pgfplotsset{compat=newest}
\usetikzlibrary{arrows.meta,positioning,calc}

%für lange Tabelle
\usepackage{longtable} 
\usepackage{algorithm}
\usepackage{algpseudocode}
\usepackage[export]{adjustbox}
% für tikz
\pgfplotsset{select coords between index/.style 2 args={
		x filter/.code={
			\ifnum\coordindex<#1\def\pgfmathresult{}\fi
			\ifnum\coordindex>#2\def\pgfmathresult{}\fi
		}
}}
\usepackage{subcaption}
\usepackage{pdfpages}
\usepackage{acronym}%abkürzung
\usetikzlibrary{arrows, decorations.markings}
\makeatletter
\tikzset{
	nomorepostaction/.code=\makeatletter\let\tikz@postactions\pgfutil@empty,
	my axis/.style={
		postaction={
			decoration={
				markings,
				mark=at position 1 with {
					\arrow[ultra thick]{latex}
				}
			},
			decorate,
			nomorepostaction
		},
		thin,
		-, % switch off other arrow tips
		every path/.append style=my axis % this is necessary
		%so it works both with "axis lines=left" and "axis lines=center"
	}
}

% 
\usepackage{adjustbox}
\makeatother


\usepackage{multirow}
%\usepackage{multicolumn}



% Unterschrift
\newcommand*{\signature}{
	\hspace{7.3cm} %verschiebt Überschrift ganz nach rechts xDD
	\includegraphics[height=1.2cm]{unterschrift/unterschrift.pdf}%high 1,2cm
	%\flushright
}

\renewcommand*{\chapterheadstartvskip}{\vspace*{-1\baselineskip}}% Abstand einstellen
\renewcommand*\chapterheadendvskip{%
	\vspace*{1\baselineskip plus -1\baselineskip minus .167\baselineskip}}

\begin{document}

	

\begin{figure}[H]
	
	\begin{tikzpicture}[node distance=2.5cm]
		
		\node (pro1) [process, minimum width=3cm, fill=white, text width=3cm] 
		{pro1};
		
		\node (pro2) [process, below of= pro1,minimum height=1.5cm,minimum width=3cm, fill=white, text width=3cm] {pro2};
	
		
		\node (pro4) [process,  right of=pro2, xshift=1.8cm, fill=white] 
		{pro4};
		
		\node (pro5) [process, below of= pro4, fill=white, yshift = -1.8cm] 
		{pro5};
		
		\node (pro6) [process,right of= pro4,xshift=3.5cm, fill=white,minimum width=3.8cm, minimum height=1cm,text width=3.8cm] 
		{pro6};
		
		\node (pro7) [process, below of= pro5, ellipse, fill=white,yshift=-1cm, minimum width=2.5cm, minimum height=1cm] {pro7};
		
	
		
		\node (pro9) [process,below of= pro6, fill=white,minimum width=3.8cm, minimum height=1cm,text width=3.8cm, yshift=-2cm] 
		{pro9};
		
		\node (pro10) [process, below of= pro9, ellipse, fill=white,yshift=-1cm] 
	{	pro10};
		
		
		
		
		% Pfeile
	
	
		\draw [arrow] (pro4) --  node[anchor=south] {nein}(pro6);
		
	
		\draw [arrow] (pro7.east) -- ++(0.2cm,0) |- ++(0,7.8cm) node[right, yshift=-2cm] {ja};
	
		
	\end{tikzpicture}

	
\end{figure}
\end{document}
hallo mein Pfeil (von pro7) geht nach der Pfeilspitze noch weiter. Wie löse ich das? Zuerst hatte ich [->] anstatt [arrow] da passt es. Aber ich will gleiche Pfeile

Nach oben