大家好。我花了一整天时间尝试弄清楚如何使用 Elsarticle 模板将表格放在两行中,如图所示。我使用的是 Overleaf。我使用 \hrulefill,但底线走得太远,有时会跳到下一页。这是我的一些尝试。
\usepackage[labelfont=bf]{caption}
\captionsetup[table]{belowskip=2pt, position=above, labelsep=space,
justification=raggedright, singlelinecheck=off}
\begin{table}[!hbt]
\centering
\hrulefill
\caption{statistics of the dataset time series}
\label{dataset-statistics}
\begin{tabular}{c |c |c |c |c }
\hline
& USDX & TENI & SENT & Brent Price \\
\hline
count & 2386.000000 & 2386.000000 & 2386.000000 & 2386.000000 \\
mean & 91.235038 & 5499.590413 & -7266.280387 & 72.182456 \\
std & 7.260205 & 1144.304023 & 3245.959430 & 26.626707 \\
min & 78.270000 & 3459.530000 & -14033.466070 & 19.330000 \\
25\% & 82.602500 & 4657.027500 & -9692.075176 & 50.862500 \\
50\% & 94.010000 & 5216.730000 & -7042.827047 & 63.765000 \\
75\% & 97.100000 & 6139.666875 & -4602.503936 & 103.885000 \\
max & 103.250000 & 9119.820000 & 18.786006 & 126.22000 \\
\hline
\end{tabular}
\end{table}
\hrulefill
你能帮忙吗?
答案1
好的,我按照这个方法解决了。
\begin{table}[!hbt]
\setlength{\tabcolsep}{0.45pc}
\hrule
\centering
\begin{tabular}{@{}l|c|c|c|c|c|c|c|c}
\hline
.....
\end{tabular}
\vspace{3mm}
\hrule
\centering
\end{table}