Yes, there are in fact 2 questions but I hope they are close enough to be related.
Hi all, I'm trying to draw a flow chart using tikz. When I want to put a itemize list in the node solb
I couldn't make the spacing of the list to be single
and left aligned as I wish.
Also when I add the description to the arrow I don't know how to fix the description north and center to the horizontal part of the arrow.
It'd be the best if someone can help me together on these 2 things. Thanks a lot.
My MWE is here.
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{varwidth}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric, arrows}
\tikzstyle{rec} = [
rectangle,
minimum width = 1cm, minimum height = 1cm,
text centered,
draw = black, fill = white]
\tikzstyle{recw80} = [
rectangle]
\tikzstyle{recw30} = [
rectangle,
minimum width = 1cm, minimum height = 1cm,
text width = 3cm,
draw = black, fill = white]
\tikzstyle{arrow} = [thick,->,>=stealth]
\begin{document}
\makebox[\textwidth][c]{\begin{tikzpicture}[node distance=2cm]
\node (start) [rec] {Hi};
\node (q1) [recw80, below of=start, yshift=-0.5cm] {};
\node (solb) [recw30, right of=q1, xshift=6.5cm] {
\begin{varwidth}{\linewidth}\begin{itemize}
\item Point 1,
\item Point 2, or
\item Point 3.
\end{itemize}\end{varwidth}};
\draw [arrow] (solb) |- node[anchor=south] {How are you?} (start);
\end{tikzpicture}}
\end{document}