LaTeX forum ⇒ Graphics, Figures & TablesSimple Arrows Topic is solved

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

Simple Arrows

Postby Lanchester » Thu Feb 01, 2018 10:35 pm

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

Tags:

User avatar
Stefan Kottwitz
Site Admin
Posts: 8979
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Fri Feb 02, 2018 1:31 pm

Hi Lanchester,

welcome to the forum!

It's easy with TikZ:

  1. \documentclass{article}
  2. \usepackage{tikz}
  3. \usetikzlibrary{calc,positioning}
  4. \begin{document}
  5. \begin{tikzpicture}[every node/.style = {font=\sffamily}]
  6. \draw [-stealth]
  7. node (R1) {R}
  8. node (R2) [below = 0.75cm of R1] {R}
  9. node (R3) [below = 0.75cm of R2] {R}
  10. node (R4) [below = 0.75cm of R3] {R}
  11. node (B1) [xshift = 3cm] at ($(R1)!.5!(R2)$) {B}
  12. node (B2) [xshift = 3cm] at ($(R3)!.5!(R4)$) {B}
  13. (R1) edge (B1)
  14. (R2) edge (B1)
  15. (R3) edge (B2)
  16. (R4) edge (B2)
  17. ;
  18. \draw [-stealth, densely dashed, transform canvas={yshift=2mm}]
  19. (B1) edge (R1)
  20. (B2) edge (R3)
  21. ;
  22. \draw [-stealth, densely dashed, transform canvas={yshift=-2mm}]
  23. (B1) edge (R2)
  24. (B2) edge (R4)
  25. ;
  26. \end{tikzpicture}
  27. \end{document}


diagram.png
diagram.png (12.25 KiB) Viewed 853 times


Stefan
Site admin

Lanchester
Posts: 7
Joined: Thu Feb 01, 2018 10:29 pm

Postby Lanchester » Fri Feb 02, 2018 2:16 pm

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: 8979
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Fri Feb 02, 2018 2:23 pm

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
Site admin

Lanchester
Posts: 7
Joined: Thu Feb 01, 2018 10:29 pm

Postby Lanchester » Sat Feb 03, 2018 8:12 pm

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!


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 12 guests