LaTeX forum ⇒ Graphics, Figures & TablesOrganigram arrows

Information and discussion about graphics, figures & tables in LaTeX documents.
math004
Posts: 2
Joined: Tue Dec 24, 2019 9:39 pm

Organigram arrows

Postby math004 » Thu Jan 02, 2020 3:51 pm

I want to have a special organigram which shown in attachement 'IMAGE', but the code which I have used gave the image_0 provided in attachement, how can I reach my aim such that I have used the following commands:

\begin{tikzpicture} [scale=0.8]
\node[draw,text centered,minimum width=2cm,minimum height=0.6cm] (A)at(0,0){text};
.
.
.
.
\draw[->] (A.south) -- (B.north);
.
.
.
.
\end{tikzpicture}
Attachments
IMAGE.png
IMAGE.png (183.29 KiB) Viewed 424 times
image_0.png
image_0.png (7.08 KiB) Viewed 424 times

Bartman
Posts: 71
Joined: Fri Jan 03, 2020 2:39 pm

Postby Bartman » Sat Jan 04, 2020 3:09 am

There are several ways to draw the picture. Please do a minimal working example, that shows, what you have done so far. Use the skills of the editor in this forum to highlight your code.

TikzFan
Posts: 4
Joined: Sun Dec 15, 2019 8:15 am

Postby TikzFan » Mon Jan 06, 2020 12:34 pm

Try this:

Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \documentclass[border=0.1cm]{standalone}
  2. \usepackage{tikz}
  3.  
  4. \begin{document}
  5.  
  6. \begin{tikzpicture}
  7. \node[draw,text width=1cm,align=center] at (-1,0) (T1) {Text};
  8. \node[draw,text width=1cm,align=center] at (2,2) (T2) {Text1};
  9. \node[draw,text width=1cm,align=center] at (2,0) (T3) {Text2};
  10. \node[draw,text width=1cm,align=center] at (2,-2) (T4) {Text3};
  11. \draw[-latex] (T1.east) -- (T2.west);
  12. \draw[-latex](T1.east) -- (T3.west);
  13. \draw[-latex](T1.east) -- (T4.west);
  14. \end{tikzpicture}
  15.  
  16. \end{document}


[img]
orga.png
[/img]
Attachments
orga.png
orga.png (31.36 KiB) Viewed 344 times

Bartman
Posts: 71
Joined: Fri Jan 03, 2020 2:39 pm

Postby Bartman » Mon Jan 06, 2020 3:35 pm

An example that is independent of fixed coordinates:

Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \documentclass[tikz, border=3pt]{standalone}
  2. \usetikzlibrary{positioning, arrows.meta}
  3.  
  4. \begin{document}
  5. \begin{tikzpicture}[
  6. nodes={
  7. draw,
  8. align=center,
  9. minimum width=2cm,
  10. minimum height=0.6cm
  11. },
  12. node distance=.2cm and 1cm
  13. ]
  14. \node (T1) {Text};
  15. \node [right=of T1] (T2) {Text2};
  16. \node [above=of T2] (T3) {Text1};
  17. \node [below=of T2] (T4) {Text3};
  18. \path [-Latex]
  19. (T1.east) edge (T2.west)
  20. (T1.east) edge (T3.west)
  21. (T1.east) edge (T4.west)
  22. ;
  23. \end{tikzpicture}
  24. \end{document}


You can also take a matrix, a tree or forest.


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 11 guests