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 3833 times

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: 10326
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

\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}
diagram.png
diagram.png (12.25 KiB) Viewed 3793 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: 10326
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