Graphics, Figures & TablesSimple Arrows

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Lanchester
Posts: 7
Joined: Thu Feb 01, 2018 10:29 pm

Simple Arrows

Post by Lanchester »

Hey guys,

i'm very new to Latex and I dont know how to put the attached figure in my latex document.

I'd be very pleased if you could help me.

Thanks in advance
Attachments
figure.jpg
figure.jpg (18.5 KiB) Viewed 3855 times

Recommended reading 2024:

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

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

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

Simple Arrows

Post by Stefan Kottwitz »

Hi Lanchester,

welcome to the forum!

It's easy with TikZ:

Code: Select all

Code, edit and compile here:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{calc,positioning}
\begin{document}
\begin{tikzpicture}[every node/.style = {font=\sffamily}]
\draw [-stealth]
node (R1) {R}
node (R2) [below = 0.75cm of R1] {R}
node (R3) [below = 0.75cm of R2] {R}
node (R4) [below = 0.75cm of R3] {R}
node (B1) [xshift = 3cm] at ($(R1)!.5!(R2)$) {B}
node (B2) [xshift = 3cm] at ($(R3)!.5!(R4)$) {B}
(R1) edge (B1)
(R2) edge (B1)
(R3) edge (B2)
(R4) edge (B2)
;
\draw [-stealth, densely dashed, transform canvas={yshift=2mm}]
(B1) edge (R1)
(B2) edge (R3)
;
\draw [-stealth, densely dashed, transform canvas={yshift=-2mm}]
(B1) edge (R2)
(B2) edge (R4)
;
\end{tikzpicture}
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
diagram.png
diagram.png (12.25 KiB) Viewed 3815 times
Stefan
LaTeX.org admin
Lanchester
Posts: 7
Joined: Thu Feb 01, 2018 10:29 pm

Simple Arrows

Post by Lanchester »

Hi Stefan,

thanks for the quick help!

PS: schöne Grüße aus Hamburg-Horn, die Welt ist doch so klein :)
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Simple Arrows

Post by Stefan Kottwitz »

So you may also like our German language site TeXwelt.de. ;) Other mode, pure question and answer based. Many graphics related (TikZ) questions and answers too.

To get an impression what graphics answers have already been given there: http://images.google.com/search?tbm=isch&q=tikz+site:texwelt.de.

Grüße von Eimsbüttel,

Stefan
LaTeX.org admin
Lanchester
Posts: 7
Joined: Thu Feb 01, 2018 10:29 pm

Simple Arrows

Post by Lanchester »

Stefan Kottwitz wrote:So you may also like our German language site TeXwelt.de. ;) Other mode, pure question and answer based. Many graphics related (TikZ) questions and answers too.
Thanks, I'll take a look!
Post Reply