I have trouble making a tikz picture label break into couple lines. Here is specific MWE:
\documentclass{article}
\usepackage[latin1]{inputenc}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows}
\begin{document}
\tikzstyle{action} = [
rectangle, draw,
fill=blue!20,
text width=6em,
node distance=3cm,
text centered
]
\begin{tikzpicture}[scale=2, auto]
% Place nodes
\node [
action,
label=below:Computer: (0 min)
]
(Receive) {Receive Order};
\node [
action,
left of=Receive,
text width=10em,
node distance=4cm,
label=below: hey this is a big\\label; what should i do to break it?
]
(identify) {I am a big process name};
\end{tikzpicture}
\end{document}
As you can see, tikz doesn't break the line. Am I missing something?
align=center
). In this case, you can uselabel={[align=center]below: hey this is a big\\label; what should i do to break it?}
, or you can set the alignment option for all of your labels usingevery label/.append style={align=center}