I created markov's chain using tikz package. Now I would add to to it caption and label but I got error.How can I add a caption and a label to a tikz object?
Tell me more
×
TeX - LaTeX Stack Exchange is a question and answer site for
users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.
|
In case you want to use floating environments, you will need to include the TikZ picture in a
If you don't want floats, see Gonzalo Medina's answer. |
|||||||
|
|
|
If you don't want the object to float, you can use, for example, a If you want the object to be treated as a floating object, you can enclose it within a A simple example illustrating both approaches:
|
|||||||
|

figureenvironment? – Count Zero Nov 22 '12 at 15:29\begin{figure}\begin{tikzpicture}...\end{tikzpicture}\caption{whatever}\label{fig:my_fav_tikz}\end{figure}. That should do the trick.:)– Count Zero Nov 22 '12 at 15:32figureenvironment; it depends on whether you want the object to float or not. Please see my answer below for more details. – Gonzalo Medina Nov 22 '12 at 15:41