Graphics, Figures & TablesOrganigram arrows

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

Organigram arrows

Post by math004 »

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 2035 times
image_0.png
image_0.png (7.08 KiB) Viewed 2035 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
Bartman
Posts: 366
Joined: Fri Jan 03, 2020 2:39 pm

Organigram arrows

Post by Bartman »

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

Organigram arrows

Post by TikzFan »

Try this:

Code: Select all

\documentclass[border=0.1cm]{standalone}
\usepackage{tikz}

\begin{document}

\begin{tikzpicture}
\node[draw,text width=1cm,align=center] at (-1,0) (T1) {Text};
\node[draw,text width=1cm,align=center] at (2,2) (T2) {Text1};
\node[draw,text width=1cm,align=center] at (2,0) (T3) {Text2};
\node[draw,text width=1cm,align=center] at (2,-2) (T4) {Text3};
\draw[-latex] (T1.east) -- (T2.west);
\draw[-latex](T1.east) -- (T3.west);
\draw[-latex](T1.east) -- (T4.west);
\end{tikzpicture}

\end{document}
[img]
orga.png
orga.png (31.36 KiB) Viewed 1955 times
[/img]
Bartman
Posts: 366
Joined: Fri Jan 03, 2020 2:39 pm

Organigram arrows

Post by Bartman »

An example that is independent of fixed coordinates:

Code: Select all

\documentclass[tikz, border=3pt]{standalone}
\usetikzlibrary{positioning, arrows.meta}
     
\begin{document}
\begin{tikzpicture}[
    nodes={
        draw,
        align=center,
        minimum width=2cm, 
        minimum height=0.6cm
    },
    node distance=.2cm and 1cm
]
\node (T1) {Text};
\node [right=of T1] (T2) {Text2};
\node [above=of T2] (T3) {Text1};
\node [below=of T2] (T4) {Text3};
\path [-Latex]
    (T1.east) edge (T2.west)
    (T1.east) edge (T3.west)
    (T1.east) edge (T4.west)
;
\end{tikzpicture}
\end{document}
You can also take a matrix, a tree or forest.
Post Reply