我希望它看起来像这样:
\usepackage{longtable}
\usepackage{lscape}
\begin{document}
\begin{landscape}
\centering
\begin{longtable}{cccccccccccccc}
\endfirsthead
\caption{(countinue)}
\endhead
\endfoot
\endlastfoot
\toprule
No. & \multicolumn{1}{c}{Shock Start} &
\multicolumn{1}{c}{MC Start} & \multicolumn{1}{c}{MC End} & \multicolumn{1}{c}{$\Delta$t\newline{} (hr)} & \multicolumn{1}{c}{$V_{rad}$ \newline{} (km/s) } \\
\midrule
1 & 1998/05/01 21:22:45 & 1998/05/02 12:18:00 & 1998/05/03 17:18:00 & 29.0 & 517
\bottomrule
\midrule
\end{longtable}
\end{landscape}
\end{document}
答案1
您只需添加一个表格即可。不幸的是,您的示例缺少重要成分。您也可以考虑使用siunitx
单位makecell
等,但这是解决您的问题的简单方法。
\documentclass[]{article}
\usepackage{booktabs}
\usepackage{longtable}
\usepackage{lscape}
\begin{document}
\begin{landscape}
\centering
\begin{longtable}{cccccccccccccc}
\endfirsthead
\caption{(countinue)}
\endhead
\endfoot
\endlastfoot
\toprule
No. & Shock Start &
MC Start & MC End & \begin{tabular}{@{}c@{}}$\Delta t$\\ (hr)
\end{tabular} & \begin{tabular}{@{}c@{}} $V_\mathrm{rad}$\\ (km/s) \end{tabular} \\
\midrule
1 & 1998/05/01 21:22:45 & 1998/05/02 12:18:00 & 1998/05/03 17:18:00 & 29.0 &
517\\
\bottomrule
\midrule
\end{longtable}
\end{landscape}
\end{document}
答案2
另一个解决方案是使用窄b{}
列与 相结合\multicolumn
。这样标题就会(正确地)与底部基线对齐。如果您的印刷传统建议居中或顶部对齐标题,请使用p
或 。m
我定义了一种新的列类型C
来减少混乱:
\documentclass[]{article}
\usepackage{booktabs, array}
\usepackage{longtable}
\usepackage{lscape}
\newcolumntype{P}{>{\centering\arraybackslash}p{1cm}}
\begin{document}
\begin{landscape}
\centering
\begin{longtable}{cccccccccccccc}
\endfirsthead
\caption{(countinue)}
\endhead
\endfoot
\endlastfoot
\toprule
No. & Shock Start &
MC Start & MC End & \multicolumn{1}{P}{$\Delta t$ (hr)} & \multicolumn{1}{P}{$V_\mathrm{rad}$ (km/s)} \\
\midrule
1 & 1998/05/01 21:22:45 & 1998/05/02 12:18:00 & 1998/05/03 17:18:00 & 29.0 &
517\\
\bottomrule
\midrule
\end{longtable}
\end{landscape}
\end{document}