Text FormattingDrawinn Tikz mindmap and changin shapes

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
hicham
Posts: 12
Joined: Mon Mar 13, 2017 3:33 pm

Drawinn Tikz mindmap and changin shapes

Post by hicham »

Hello dear friend;

in reality I want to draw a tikz mindmap but the childs being a rectangle, like shows in the image

Thanks
Attachments
TIKZ MINMAP.png
TIKZ MINMAP.png (16.15 KiB) Viewed 4465 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

tiagodelpupo
Posts: 2
Joined: Mon Jun 18, 2018 3:10 pm

Drawinn Tikz mindmap and changin shapes

Post by tiagodelpupo »

\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\usetikzlibrary[graphs]
\graph [no placement,nodes={draw,rectangle},edges={>=latex}] {
A [at={(2,2)},circle] -- {
B [at={(0,4)}],
C [at={(4,4)}],
D [at={(4,0)}],
E [at={(0,0)}],
}
};
\end{tikzpicture}
\end{document}

Like this?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10326
Joined: Mon Mar 10, 2008 9:44 pm

Drawinn Tikz mindmap and changin shapes

Post by Stefan Kottwitz »

Another example:

Code: Select all

\documentclass[border = 10pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}[
     basenode/.style = { color = white, fill = blue!70, draw, font = \sffamily},
     rootnode/.style = { basenode, circle, minimum width = 2cm},
    childnode/.style = { basenode, rectangle, rounded corners,
                         minimum width = 10em, align = center},
  ]
\draw
  node [rootnode] (root) {root}
  node [childnode, above left  = 1cm of root] (A) {TEXT}
  node [childnode, below left  = 1cm of root] (B) {TEXT}
  node [childnode, above right = 1cm of root] (C) {TEXT}
  node [childnode, below right = 1cm of root] (D) {TEXT}
  (root) -- (A)
  (root) -- (B)
  (root) -- (C)
  (root) -- (D)
 ;
\end{tikzpicture} 
\end{document}
diagram.png
diagram.png (14.64 KiB) Viewed 4379 times
Stefan
LaTeX.org admin
hicham
Posts: 12
Joined: Mon Mar 13, 2017 3:33 pm

Drawinn Tikz mindmap and changin shapes

Post by hicham »

Thank you Mr Stefan
Post Reply