I'm using IEEE Conference Latex template. I want to have a figure with tikzpicture
. My figure is not an image, is a box (rectangle) with some text inside of that. This is my code:
\begin{figure}[t]
\begin{tikzpicture}
\node [draw,rectangle,align=left,right=2pt] (mid)
{\textless bug\textgreater\\
\textless \texttt{bug\_id}\textgreater 175229\textless \texttt{/bug\_id}\textgreater\\
\textless \texttt{creation\_ts}\textgreater 2007-02-23 03:34:00 \textless\texttt{/creation\_ts}\textgreater\\
\textless \texttt{short\_desc}\textgreater\\
\hspace*{0.1in}
Should be able to open editor automatically when a task is activated\\
\textless \texttt{/short\_desc}\textgreater\\
\textless /bug\textgreater\\
.......................................................................... };
\end{tikzpicture}
\captionsetup{justification=centering}
\caption{The overall structure of approach}
\end{figure}
Problem is that,at the end, the figure crosses the first column and it has an overlap with the second column. How I can fit it to just one column?
\documentclass{...}
,\begin{document}
, and\end{document}
. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem.