作者LSC112233 (LSC)
看板LaTeX
标题Re: [问题] 图表位置
时间Wed Nov 9 09:48:45 2011
\begin{table}[tb]
\begin{threeparttable}
\caption{name}\label{name}
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}lcccc}
\toprule \toprule
a & \multicolumn{2}{c}{b} & \multicolumn{2}{c}{c} \\
\cmidrule(r){2-3}\cmidrule(l){4-5}
d & e & f & g & h \\
\midrule
i & j & k & l & m \\
.
.
.
.
n & o & p & \multicolumn{2}{c}{q} \\
\bottomrule \bottomrule
\multicolumn{5}{l}{\footnotesize{r}} \\ [-2pt]
\\
\end{tabular*}
\end{threeparttable}
\end{table}
\begin{landscape}
\begin{table}
\begin{longtable}[p]{lm{2.6cm}m{2.6cm}m{2.6cm}m{2.6cm}m{2.6cm}m{2.6cm}}
\caption{name.}\label{name}\\
\toprule \toprule
a & \multicolumn{2}{c}{b} & \multicolumn{2}{c}{c} & \multicolumn{2}{c}{d} \\
\cmidrule(r){2-3}\cmidrule(lr){4-5}\cmidrule(l){6-7}
e & f & g & h & i & j & k \\
\midrule
\endfirsthead
\caption[]{continued}\\
\midrule
a & \multicolumn{2}{c}{b} & \multicolumn{2}{c}{c} & \multicolumn{2}{c}{d} \\
\cmidrule(r){2-3}\cmidrule(lr){4-5}\cmidrule(l){6-7}
e & f & g & h & i & j & k \\
\midrule
\endhead
\midrule
\endfoot
表格内容....
\bottomrule \bottomrule
\end{longtable}
\end{table}
\end{landscape}
请加上蓝字部分!
只有用了
\begin{table}
\end{table}
才会产生真正的float,[htbp]才会生效。
同样,只有float才会独立於本文单独排版,
才不会有空白。
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 210.61.41.36