我的桌子像这样
\begin{tabular}{c c c}
a & b & c
\end{tabular}
没有任何标题,所以我制作了表格列表。这只是其中的示例。
答案1
像这样吗?
\documentclass{article}
\usepackage{caption}
\usepackage{xpatch}
\xapptocmd{\endtabular}{\captionof{table}[\tablename: \thetable]{}}{}{}
\begin{document}
\listoftables
\section{First table}
\begin{tabular}{c c c}
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
\end{tabular}
\begin{tabular}{c c c}
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
\end{tabular}
\end{document}
另一个版本
\documentclass{article}
\usepackage{caption}
\captionsetup{justification=RaggedRight,singlelinecheck=false,labelformat=empty}
\begin{document}
\listoftables
\section{First table}
\begin{table}
\begin{tabular}{c c c}
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
\end{tabular}
\caption{Some caption}
\end{table}
\begin{table}
\begin{tabular}{c c c}
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
\end{tabular}
\caption{Some another caption}
\end{table}
\end{document}