我的问题是行与行之间似乎有双倍间距。列标题行与行之间的间距也太大。我对 LaTex 还很陌生,不知道如何纠正这个问题。
这是我所做的(仅使用一小部分数据集):
\documentclass[10pt,fullpage]{aastex}
\usepackage{longtable}
\usepackage{pdflscape}
\begin{document}
\begin{landscape}
\begin{center}
\begin{longtable}{c c c c c c c c c c c}
%Header for the first page of the table...
\caption{NGC2264 Protostars}\\
\hline \hline \\ [-.8ex]
\multicolumn{1}{c}{Name} &
\multicolumn{1}{c}{RA} &
\multicolumn{1}{c}{DEC} &
\multicolumn{1}{c}{Mean I1} &
\multicolumn{1}{c}{Mean I2} &
\multicolumn{1}{c}{Alpha K2} &
\multicolumn{1}{c}{Class} &
\multicolumn{1}{c}{Alpha K8} &
\multicolumn{1}{c}{Av} &
\multicolumn{1}{c}{Avg Av}\\ [0.5ex] \hline
\\ [-.8ex]
\endfirsthead
%Header for the rest of the table's pages...
\multicolumn{1}{c}{{\tablename} \thetable{} -- Continued} \\ [0.5ex]
\hline \hline \\ [-.8ex]
\multicolumn{1}{c}{Name} &
\multicolumn{1}{c}{RA} &
\multicolumn{1}{c}{DEC} &
\multicolumn{1}{c}{Mean I1} &
\multicolumn{1}{c}{Mean I2} &
\multicolumn{1}{c}{Alpha K2} &
\multicolumn{1}{c}{Class} &
\multicolumn{1}{c}{Alpha K8} &
\multicolumn{1}{c}{Av} &
\multicolumn{1}{c}{Avg Av}\\ [0.5ex] \hline
\\ [.8ex]
\endhead
\\\hline
\endfoot
%Begin data...
Mon-000101 & 100.27242 & 9.608597 & 11.082 & 10.034 & 0.39 & I & 0.39 & 31.1 & 31.1 \\
Mon-000171 & 100.2923 & 9.52286 & 14.834 & 14.385 & 0.45 & I & 0.45 & 33.7 & 33.7 \\
Mon-000174 & 100.27621 & 9.563802 & 11.605 & 10.134 & 0.95 & I & 1.29 & 30.8 & 30.8 \\
Mon-000191 & 100.28709 & 9.495832 & 9.231 & 8.105 & 1 & I & 1.01 & 0 & 0 \\
\hline
%End data.
\end{longtable}
\end{center}
\end{landscape}
\end{document}
作为一个附加问题:我如何让页面顶部的“表 1::NGC 2264..”将“NGC 2264...”显示在“表 1::”下方而不是旁边?
答案1
默认情况下aastex
设置看起来是双倍行距的文档。这也会影响到表格设计。您可以通过将值设置为\arraystretch
小于 1 来调整每行的高度。例如,左图显示默认值,而右图\arraystretch
显示0.7
:
你会使用(比如说)
\begin{landscape}
\centering%
\renewcommand{\arraystretch}{0.7}%
\begin{longtable}{..}
% <table content>
\end{longtable}
\end{landscape}