codex-latex-experiments/trees1.tex
2021-11-26 20:25:46 -05:00

17 lines
590 B
TeX

\documentclass[border=0.3cm]{standalone}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric, arrows}
\tikzstyle{block} = [rectangle, rounded corners, minimum width=3cm, minimum height=1cm,text centered, draw=red, fill=white]
\tikzstyle{arrow} = [thick,->,>=stealth]
\begin{document}
\begin{tikzpicture}[node distance=2cm]
\node (start) [block] {Start};
\node (stop) [block, below of=start] {Stop};
\node (other) [block, right of=stop, xshift=2cm] {Other};
\draw [arrow] (start) -- (stop);
\draw [arrow] (start) -| (other);
\draw [arrow] (other) -- (stop);
\end{tikzpicture}
\end{document}