Text Formatting ⇒ Drawinn Tikz mindmap and changin shapes
Drawinn Tikz mindmap and changin shapes
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 (16.15 KiB) Viewed 4466 times
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
-
- Posts: 2
- Joined: Mon Jun 18, 2018 3:10 pm
Drawinn Tikz mindmap and changin shapes
\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?
- Stefan Kottwitz
- Site Admin
- Posts: 10326
- Joined: Mon Mar 10, 2008 9:44 pm
Drawinn Tikz mindmap and changin shapes
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}