我使用双列格式,目的是制作一个只跨一列的表格,虽然对于小标题来说没问题,但是,当标题的长度增加时,表格会转到第二列。你能建议我把标题分成两行吗?我为此使用了 \thead,但它对我不起作用。提前致谢
在此处输入代码
\begin{table}[t]
\caption{}
\renewcommand{\arraystretch}{1.3}
\begin{center}
\label{table_par}
\begin{tabular}{l|l|c|c|c}
&\textbf{\small}& \multicolumn{3}{c}{\textbf{\small Designed Cases}}\\
\cline{3-5}
\textbf{{\small Tariffs}} &\textbf{ \small}& \textbf{\small Without case and data}& \textbf{\small With case and data}& \textbf{\small With} \\
\hline\hline
\multirow{2}{*}{1} &abc &5.34 &5.27 &4.00 \\
&Decrease &--- &1.37\% &28.7\% \\
\hline
\multirow{2}{*}{2} &abc &5.69 &5.62 &3.8 \\
&Decrease &--- &1.36\% &39.42\% \\
\hline
\end{tabular}
\end{center}
\end{table}
答案1
\begin{table}[t]
\caption{}
\renewcommand{\arraystretch}{1.3}
\begin{center}
\label{table_par}
\begin{tabular}{l|l|c|c|c}
& & \multicolumn{3}{c}{\textbf{\small Designed Cases}}\\
\cline{3-5}
&\textbf{ \small}& \textbf{\small Without case}& \textbf{\small With case}& \\
\textbf{{\small Tariffs}} & & \textbf{\small and data}& \textbf{\small and data}& \textbf{\small With} \\
\hline\hline
\multirow{2}{*}{1} &abc &5.34 &5.27 &4.00 \\
&Decrease &--- &1.37\% &28.7\% \\
\hline
\multirow{2}{*}{2} &abc &5.69 &5.62 &3.8 \\
&Decrease &--- &1.36\% &39.42\% \\
\hline
\end{tabular}
\end{center}
\end{table}