答案1
\begin{figure}[!h]
\centering
\tikz
\end{figure}
答案2
当图片不需要放在图中(即不需要标题时)时,我使用
\begin{center}
\begin{tikzpicture}
....
\end{tikzpicture}
\end{center}
答案3
\hbox to \hsize{\hfil{Anything}\hfil}
\begin{figure}[!h]
\centering
\tikz
\end{figure}
当图片不需要放在图中(即不需要标题时)时,我使用
\begin{center}
\begin{tikzpicture}
....
\end{tikzpicture}
\end{center}
\hbox to \hsize{\hfil{Anything}\hfil}