左侧有字“表 1。”,数字后有句号。
平均能量损失
\documentclass[]{report}
\usepackage{caption}
\captionsetup[table]{labelformat=simple,labelsep=newline,justification=centering}
\begin{document}
\begin{table}\centering
\caption{Dummy table}
\begin{tabular}{|c|c|c|c|c|c|c|c|c|c|}
\hline
qwe & & qwe & & qwe & & qwe & & & \\
\hline
& & & & & & & & & \\
\hline
& & & & & & & & & \\
\hline
& & qwe & & & & & & & \\
\hline
& & & & & & & & & \\
\hline
& & & & & qe & & & & \\
\hline
& & & & & & & & & \\
\hline
& & & & & & q & we & & \\
\hline
& & & & & & & qwe & & \\
\hline
& & & & & qe & & & & \\
\hline
\end{tabular}
\end{table}
\end{document}
答案1
您可以定义新的标题标签格式,并使用threeparttable
:
\documentclass[]{report}
\usepackage{caption}
\usepackage{threeparttable}
\DeclareCaptionFormat{mine}{\raggedright #1.\\\centering #3}%
\captionsetup[table]{labelformat=simple, singlelinecheck=off, format=mine}
\begin{document}
\begin{table}\centering
\begin{threeparttable}
\caption{Dummy table}
\begin{tabular}{|c|c|c|c|c|c|c|c|c|c|}
\hline
qwe & & qwe & & qwe & & qwe & & & \\
\hline
& & & & & & & & & \\
\hline
& & & & & & & & & \\
\hline
& & qwe & & & & & & & \\
\hline
& & & & & & & & & \\
\hline
& & & & & qe & & & & \\
\hline
& & & & & & & & & \\
\hline
& & & & & & q & we & & \\
\hline
& & & & & & & qwe & & \\
\hline
& & & & & qe & & & & \\
\hline
\end{tabular}
\end{threeparttable}
\end{table}
\end{document}