原帖:http://stackoverflow.com/questions/803463/caption-outside-table
If you don't want to use a "float" (e.g. table or figure) that will "float away" from the place you define it, you can add
\usepackage{capt-of}
in the preamble and then do something like
\begin{center}
\captionof{table}{Caption text goes here}
\label{table1} % for use in \ref{table1} if you want to refer to the table number
\begin{tabular}{|c|c|c|c|c|c|}
% etc.
\end{tabular}
\end{center}
If you don't want to use a "float" (e.g. table or figure) that will "float away" from the place you define it, you can add
\usepackage{capt-of}
in the preamble and then do something like
\begin{center}
\captionof{table}{Caption text goes here}
\label{table1} % for use in \ref{table1} if you want to refer to the table number
\begin{tabular}{|c|c|c|c|c|c|}
% etc.
\end{tabular}
\end{center}