I'm new to tikz. I'm trying to create something like this:
The two tcolorboxes work fine outside of being nodes. After googling and reading tikz documentation, I'm still at a loss for how to draw an arrow! Here's my MWE that is sad and needs smarts beyond my capacity at this moment.
\documentclass[12pt,fleqn,twoside]{report}
\usepackage{tcolorbox}
\usepackage{tikz}
\tcbset{%
boxrule=4pt,
colback=white, %background color
colframe=blue, % frame colour
halign=center,
valign=center,
halign lower=center,
align lower =center,
sharp corners=all,
center title,
lower separated=false,
fonttitle=\sffamily\bfseries\large,
}
\begin{document}
\begin{tikzpicture}[node distance=2cm,baseline=-0.5ex, arrow/.style = {thick,-stealth}]
\node(NodeName1){
\begin{tcolorbox}[title=Box1Title]
Blah box1 text
\end{tcolorbox}
};
\node(NodeName2){
\begin{tcolorbox}[title=Box2Title]
Blah box2 text
\end{tcolorbox}
};
\draw(NodeName1);
\draw[->] (NodeName1) -- (NodeName2);
\draw(NodeName2);
\end{tikzpicture}
\end{document}
Best Answer
arrow is not the problem (actually it appears), but your nodes overlaps (are not displaced one against other) and consequently its length is zero pt. also you have errors in your code (undefined options) and since width of boxes are not defined, it use default width, e.g. text width ...
see if obtained image is what you looking for:
edit: code and explanation is slightly improved