我有一张带有代码的表格和一张如下的表格:
\documentclass[a4paper, 10pt, fleqn, numbers]{cas-dc}
\usepackage{adjustbox}
\begin{table*}[t]
\begin{center}
\caption{Caption of table.}
\label{tab:table-a}
\begin{adjustbox}{width=\textwidth}
\small
\begin{tabular}{lccll}
\hline
\rowcolor[HTML]{C0C0C0}
\multicolumn{1}{c}{\cellcolor[HTML]{C0C0C0}Methods} & Type & Target & \multicolumn{1}{c}{\cellcolor[HTML]{C0C0C0}Model} & \multicolumn{1}{c}{\cellcolor[HTML]{C0C0C0}\begin{tabular}[c]{@{}c@{}} ABC \\DEE\end{tabular}} \\ \hline
L-AA \cite{Christian2013Intriguing}& 123& 456& 5678& Expensive \\
\hline
\end{tabular}
\end{adjustbox}
\end{center}
\end{table*}
结果如下:
我在我的 Overleaf 项目中添加了 cas-common.sty 文件并添加了此注释\cs_new:Npn \__make_tbl_caption:nn #1#2 { %\l_tbl_align_tl <-- THIS LINE \skip_vertical:N \l_tbl_abovecap_skip {\parbox{ \dimexpr(\l_tbl_width_dim)} {\rightskip=0pt\sffamily\small\textbf{\color{scolor}#1}\par#2\par\vskip4pt }} \skip_vertical:N \l_tbl_belowcap_skip }
。但它没有任何变化。
问题:如何在 LaTeX 中将表格编号和标题放在同一行?