the
tikzpicture
environment seems to fail to center sometimes. The following is such an example.
Code: Select all
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{arrows,calc,positioning,shadows,shapes}
\begin{document}
\begin{figure}[!htb]
\centering
\begin{tikzpicture}
\draw[help lines] (-6.0,-6.0) grid (6.0,6.0);
\node[align=center, fill=red!20, rounded corners=14pt, minimum height=2cm, minimum width=4cm] (chbox) at (0,0) {A};
\node[align=center, fill=red!20, rounded corners=14pt, minimum height=2cm, minimum width=4cm] (meshbox) at (-6.0,0) {B};
\node[align=center, fill=red!20, rounded corners=14pt, minimum height=2cm, minimum width=4cm] (imagebox) at (6.0,0) {C};
\end{tikzpicture}
\caption{Figure caption}
\label{fig:dummy}
\end{figure}
\end{document}