您能帮我在 latex 中创建下表吗?如果第一列(累积概率百分比)与表中的完全相同,我将不胜感激。此外,是否可以让它跨越论文中的两列?
非常感谢
到目前为止我尝试过这个,虽然不完全是我想要做的,但这是我能做的:
\begin{table*}[ht]
\begin{tabular}{| l | l | c | c | c | c |}
\hline
\multicolumn{2}{|l|}{Percentage of Cumulative probability} & Title & Location Error (m)& Expected Improvement \\
\hline
\multirow{2}{*}{50$\%$}&Here\\ &Here & 214 & text\\
\hline
\multicolumn{2}{|l|}{67$\%$} & text & text & text \\
\hline
\multicolumn{2}{|l|}{95$\%$} & text & text & text \\
\hline
\end{tabular}
\end{table*}
答案1
我仍然不确定我是否正确理解了您的请求,但这里有两个建议,假设“标题”列中的“这里”实际上是一些较长的文本。
\documentclass[twocolumn]{article}
\usepackage{booktabs}
\usepackage{multirow}
\usepackage{tabularx}
\usepackage{makecell}
\renewcommand{\theadfont}{\itshape}
\begin{document}
\begin{table*}
\begin{tabularx}{\textwidth}{lXcc}
\toprule
\thead[l]{Percentage of\\ cumulative probability}
& \thead[l]{Title}
& \thead{Location error\\ for (metres)}
& \thead{Expected\\ improvement}\\
\midrule
\multirow{2}{*}{50\%}
& Here
& 214
& \multirow{2}{*}{No.} \\
& Here
& 110 \\
\midrule
\end{tabularx}
\end{table*}
\begin{table}
\begin{tabularx}{\linewidth}{lXcc}
\toprule
\thead[l]{Percentage of\\ cumulative\\ probability}
& \thead[l]{Title}
& \thead{Location\\ error for\\ (metres)}
& \thead{Expected\\ improvement}\\
\midrule
\multirow{2}{*}{50\%}
& Here
& 214
& \multirow{2}{*}{No.} \\
& Here
& 110 \\
\midrule
\end{tabularx}
\end{table}
\end{document}