1

How can I draw these schemas in LaTeX?

enter image description here

2

2 Answers 2

3

I would use forest for that.

\documentclass[tikz,border=3.14mm]{standalone}
\usepackage[edges]{forest}
\begin{document}
\begin{forest}
for tree={draw,edge={-latex},parent anchor=south,align=left}
[Ontological models and languages\\ 
for mathematical knowledge management\\ 
on the Semantic Web 
 [Terminological Ressources\\ and Symbolic Notation\\ for Mathematical domain
  [Terminological Ressources
   [Vocabularies
    [The Online Encyclopedia\\ of Integer Sequences]
   ]
   [pft112
    [pft1121]
    [pft1122]
   ]  
  ]
  [pft12
   [pft121
    [pft1211]
   ]
   [pft122
    [pft1221]
   ]  
   [pft123
    [pft1231]
   ]  
  ]
 ]
 [pft2
  [pft21
   [pft211]
   [pft212]  
  ]
  [pft22]
 ]
]
\end{forest}
\end{document}

enter image description here

Here is a version with a title and using Zarko's suggestion for the tiers.

\documentclass[tikz,border=3.14mm]{standalone}
\usepackage[edges]{forest}
\usetikzlibrary{positioning}
\begin{document}
\begin{forest}
for tree={draw,edge={-latex},parent anchor=south,align=left,
tier/.option=level% <-from Zarko's comment
}
[Ontological models and languages\\ 
for mathematical knowledge management\\ 
on the Semantic Web,alias=root 
 [Terminological Ressources\\ and Symbolic Notation\\ for Mathematical domain
  [Terminological Ressources
   [Vocabularies
    [The Online Encyclopedia\\ of Integer Sequences]
   ]
   [pft112
    [pft1121]
    [pft1122]
   ]  
  ]
  [pft12
   [pft121
    [pft1211]
   ]
   [pft122
    [pft1221]
   ]  
   [pft123
    [pft1231]
   ]  
  ]
 ]
 [pft2
  [pft21
   [pft211]
   [pft212]  
  ]
  [pft22]
 ]
]
\node[above=0.5em of current bounding box,font=\large\bfseries]{My title};
\end{forest}
\end{document}

enter image description here

4
  • @Halima You're welcome! I also added something that addresses the question of too long text. You basically have to say align=<something>, where <something> can be left, center or something analogous. The way this site works is that if you have additional questions, you can simply ask a new one, which is free of charge after all. The answer fields are only for answers to the original question. If an answer solves your problem, you can accept it by clicking on the check mark left of it.
    – user121799
    Commented May 22, 2019 at 14:02
  • I would add tier/.option=level into for tree= {...}.
    – Zarko
    Commented May 22, 2019 at 14:42
  • thanks again, can I add a title to this schema?
    – Halima
    Commented May 22, 2019 at 14:57
  • @Halima What do you mean by title?
    – user121799
    Commented May 22, 2019 at 14:58
3

You may start at this

\documentclass[tikz]{standalone}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}[>=latex]
\node[draw] (1) {Blah blah level 1};
\node[draw,below left=1cm and 2cm of 1.south] (2-1) {Level 2 first thing};
\node[draw,below right=1cm and 2cm of 1.south] (2-2) {Level 2 second thing};
\draw[->] (1) -- (2-1);
\draw[->] (1) -- (2-2);
\end{tikzpicture}
\end{document}

enter image description here

Sorry, but we do not want to draw everything from scratch. You have to do it yourself based on our answers.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .