我怎样才能将“Serra”行后的下表拆分成 2 页?我想我必须使用 longtable,但当我用tabular
table替换时longtable
,它就乱了。
该表现在的样子:
正如您所见,它超出了底部边缘。
\documentclass[a4paper, oneside]{article}
\usepackage{tabulary}
\usepackage{multirow}
\usepackage{multicol}
\usepackage{array}
\usepackage{booktabs}
\usepackage{makecell} %text wrapping in cells
\usepackage{ragged2e}
\usepackage{geometry}
\usepackage{siunitx} %SI-units
\sisetup{per-mode=symbol}
\DeclareSIUnit \annum{a}
\usepackage{pdflscape} %landscape mode
\begin{document}
%%Tab: Flushing efficiencies
\begin{landscape}
\begin{table}[htbp]
\centering
\setlength\tabcolsep{4pt}
\caption{Flushing efficiencies.}
\begin{tabular}{c
c
S[table-format=3.1]
S[table-format=4]
S[table-format=3.2]
c
c
c
S[table-format=2.2]
c}
\toprule
{\makecell{Reservior\\ (Location)}}
& {\makecell{Flushing \\ Year(s)/type}}
& {\makecell{$V_{s,\mathrm{out}}$ \\ {[\SI{E3}{\cubic\m}]}}}
& {\makecell{$V_{w,\mathrm{out}}$ \\ {[\SI{E3}{\cubic\m}]}}}
& {\makecell{$\sigma_{s}$ \\ {[\si{\mL\per\L}]}}}
& {\makecell{$\sigma_{s,m}$ \\ {[\si{\mL\per\L}]}}}
& \makecell{$V_{s,m,\mathrm{out}}$ \\ {[\si{\cubic\m\per a}]}}
& {\makecell{MAS \\ {[\SI{E3}{\cubic\m\per a}]}}}
& \multicolumn{2}{c}{\makecell{Flushing\\ efficiencies $\eta_{f}$ }} \\
\cmidrule{9-10}
& & & & & & & & {$\eta_{\sigma}$} {[\si{\percent}]} & {$\eta_{\mathrm{v}}$} {[\si{\percent}]}\\
\midrule
\multirow{5}{*}{Ferden (CH)} & 2018 (E) & 96 & 2285 & 42.01
& \multirow{5}{*}{47.97} & \multirow{5}{*}{112667} & \multirow{5}{*}{50} & 4.20 & \multirow{5}{*}{225.3} \\
& 2016 (E) & 120.0 & 4030 & 29.78 & & & & 2.98 & \\
& 2014 (E) & 60.0 & 2800 & 21.41 & & & & 2.14 & \\
& 2013 (E) & 160.0 & 3796 & 42.15 & & & & 4.22 & \\
& 2012 (E) & 240.0 & 2297 & 104.48 & & & & 10.45 & \\
\midrule
\multirow{3}{*}{Gebidem (CH)} & 2018 (E) & 295.0 & 9130 & 32.31 & \multirow{3}{*}{37.68} & \multirow{3}{*}{218750} & \multirow{3}{*}{160} & 3.23 & \multirow{3}{*}{136.7} \\
& 2016 (E) & 287.0 & 7500 & 38.27 & & & & 3.83 & \\
& 2014 (E) & 293.0 & 6900 & 42.46 & & & & 4.25 & \\
\midrule
\multirow{1}{*}{Godey (CH)} & 2018 (E) & 20.0 & 3456 & 5.79 & 5.79 & ns & ns & 0.58 & ns \\
\midrule
\multirow{2}{*}{Luzzone (CH)} & 2019 (P) & 3.6 & 267 & 13.48
& \multirow{2}{*}{12.32} & \multirow{2}{*}{ns} & \multirow{2}{*}{55} & 1.35 & \multirow{2}{*}{ns}\\
& 1985 (E) & 300.0 & 26877 & 11.16 & & & & 1.12 & \\
\midrule
Malvaglia (CH) & 2019 (P) & 1.6 & 179 & 8.94 & 8.94 & ns & 25 & 0.89 & ns \\
\midrule
\multirow{2}{*}{Palagnedra (CH)} & 2013 (E) & 324.0 & 64000 & 5.06 & \multirow{2}{*}{4.26} & \multirow{2}{*}{50400} & \multirow{2}{*}{200} & 0.51 & \multirow{2}{*}{25.2} \\
& 2003 (E) & 180.0 & 52000 & 3.46 & & & & 0.35 & \\
\midrule
\multirow{4}{*}{Serra (CH)} & 2018 (E) & 3.3 & 600 & 5.50 & \multirow{4}{*}{5.95} & \multirow{4}{*}{1616} & \multirow{4}{*}{ns} & 0.55 & \multirow{4}{*}{ns} \\
& 2015 (E) & 3.9 & 570 & 6.84 & & & & 0.68 & \\
& 2012 (E) & 2.2 & 430 & 5.12 & & & & 0.51 & \\
& 2009 (E) & 5.1 & 810 & 6.35 & & & & 0.64 & \\
\midrule
\multirow{3}{*}{Tourtemagne (CH)} & 2018 (E) & 1.8 & 210 & 8.33 & \multirow{3}{*}{13.02} & \multirow{3}{*}{4560} & \multirow{3}{*}{ns} & 0.83 & \multirow{3}{*}{ns} \\
& 2017 (E) & 3.0 & 370 & 8.11 & & & & 0.81 & \\
& 2016 (E) & 5.5 & 263 & 20.91 & & & & 2.09 & \\
& 2015 (E) & 3.4 & 233 & 14.72 & & & & 1.47 & \\
\midrule
Dashidaira (JP) & 1995-2006 (E) & 6000.0 & ns & ns & ns & 545455 & 1400 & ns & 39.0 \\
\bottomrule
\multicolumn{10}{l}{\small $\sigma_{s}$ = volumetric mixture concentration, $\sigma_{s,m}$ = mean volumetric mixture concentration, MAS $(=V_{s,m,\mathrm{in}})$}\\
\end{tabular}
\label{tab4:flushing_efficiencies}
\end{table}
\end{landscape}
\end{document}
答案1
以下是您可以如何将代码调整到该longtable
包中。此外,我还更正了table-format
第 3 列和第 4 列中两个略微错误的值,以克服框过满警告。由于表格仍然适合一页,因此我在以下 MWE 中重复了最后两个块,以创建表格自动拆分到两页的情况。
\documentclass[a4paper, oneside]{article}
\usepackage{tabulary}
\usepackage{multirow}
\usepackage{multicol}
\usepackage{array}
\usepackage{booktabs}
\usepackage{makecell} %text wrapping in cells
\usepackage{ragged2e}
\usepackage{geometry}
\usepackage{siunitx} %SI-units
\sisetup{per-mode=symbol}
\DeclareSIUnit \annum{a}
\usepackage{pdflscape} %landscape mode
\usepackage{longtable}
\begin{document}
%%Tab: Flushing efficiencies
\begin{landscape}
\setlength\tabcolsep{4pt}
\begin{longtable}{c
c
S[table-format=4.1]
S[table-format=5]
S[table-format=3.2]
c
c
c
S[table-format=2.2]
c}
\caption{Flushing efficiencies.}\label{tab4:flushing_efficiencies}\\
\toprule
{\makecell{Reservior\\ (Location)}}
& {\makecell{Flushing \\ Year(s)/type}}
& {\makecell{$V_{s,\mathrm{out}}$ \\ {[\SI{E3}{\cubic\m}]}}}
& {\makecell{$V_{w,\mathrm{out}}$ \\ {[\SI{E3}{\cubic\m}]}}}
& {\makecell{$\sigma_{s}$ \\ {[\si{\mL\per\L}]}}}
& {\makecell{$\sigma_{s,m}$ \\ {[\si{\mL\per\L}]}}}
& \makecell{$V_{s,m,\mathrm{out}}$ \\ {[\si{\cubic\m\per a}]}}
& {\makecell{MAS \\ {[\SI{E3}{\cubic\m\per a}]}}}
& \multicolumn{2}{c}{\makecell{Flushing\\ efficiencies $\eta_{f}$ }} \\
\cmidrule{9-10}
& & & & & & & & {$\eta_{\sigma}$} {[\si{\percent}]} & {$\eta_{\mathrm{v}}$} {[\si{\percent}]}\\
\midrule
\endfirsthead
\caption{Flushing efficiencies. - continued from previous page}\\
\toprule
{\makecell{Reservior\\ (Location)}}
& {\makecell{Flushing \\ Year(s)/type}}
& {\makecell{$V_{s,\mathrm{out}}$ \\ {[\SI{E3}{\cubic\m}]}}}
& {\makecell{$V_{w,\mathrm{out}}$ \\ {[\SI{E3}{\cubic\m}]}}}
& {\makecell{$\sigma_{s}$ \\ {[\si{\mL\per\L}]}}}
& {\makecell{$\sigma_{s,m}$ \\ {[\si{\mL\per\L}]}}}
& \makecell{$V_{s,m,\mathrm{out}}$ \\ {[\si{\cubic\m\per a}]}}
& {\makecell{MAS \\ {[\SI{E3}{\cubic\m\per a}]}}}
& \multicolumn{2}{c}{\makecell{Flushing\\ efficiencies $\eta_{f}$ }} \\
\cmidrule{9-10}
& & & & & & & & {$\eta_{\sigma}$} {[\si{\percent}]} & {$\eta_{\mathrm{v}}$} {[\si{\percent}]}\\
\midrule
\endhead
\multicolumn{10}{l}{\small $\sigma_{s}$ = volumetric mixture concentration, $\sigma_{s,m}$ = mean volumetric mixture concentration, MAS $(=V_{s,m,\mathrm{in}})$}\\
\endfoot
\multirow{5}{*}{Ferden (CH)} & 2018 (E) & 96 & 2285 & 42.01
& \multirow{5}{*}{47.97} & \multirow{5}{*}{112667} & \multirow{5}{*}{50} & 4.20 & \multirow{5}{*}{225.3} \\*
& 2016 (E) & 120.0 & 4030 & 29.78 & & & & 2.98 & \\*
& 2014 (E) & 60.0 & 2800 & 21.41 & & & & 2.14 & \\*
& 2013 (E) & 160.0 & 3796 & 42.15 & & & & 4.22 & \\*
& 2012 (E) & 240.0 & 2297 & 104.48 & & & & 10.45 & \\
\midrule
\multirow{3}{*}{Gebidem (CH)} & 2018 (E) & 295.0 & 9130 & 32.31 & \multirow{3}{*}{37.68} & \multirow{3}{*}{218750} & \multirow{3}{*}{160} & 3.23 & \multirow{3}{*}{136.7} \\*
& 2016 (E) & 287.0 & 7500 & 38.27 & & & & 3.83 & \\*
& 2014 (E) & 293.0 & 6900 & 42.46 & & & & 4.25 & \\
\midrule
\multirow{1}{*}{Godey (CH)} & 2018 (E) & 20.0 & 3456 & 5.79 & 5.79 & ns & ns & 0.58 & ns \\
\midrule
\multirow{2}{*}{Luzzone (CH)} & 2019 (P) & 3.6 & 267 & 13.48
& \multirow{2}{*}{12.32} & \multirow{2}{*}{ns} & \multirow{2}{*}{55} & 1.35 & \multirow{2}{*}{ns}\\*
& 1985 (E) & 300.0 & 26877 & 11.16 & & & & 1.12 & \\
\midrule
Malvaglia (CH) & 2019 (P) & 1.6 & 179 & 8.94 & 8.94 & ns & 25 & 0.89 & ns \\
\midrule
\multirow{2}{*}{Palagnedra (CH)} & 2013 (E) & 324.0 & 64000 & 5.06 & \multirow{2}{*}{4.26} & \multirow{2}{*}{50400} & \multirow{2}{*}{200} & 0.51 & \multirow{2}{*}{25.2} \\*
& 2003 (E) & 180.0 & 52000 & 3.46 & & & & 0.35 & \\
\midrule
\multirow{4}{*}{Serra (CH)} & 2018 (E) & 3.3 & 600 & 5.50 & \multirow{4}{*}{5.95} & \multirow{4}{*}{1616} & \multirow{4}{*}{ns} & 0.55 & \multirow{4}{*}{ns} \\*
& 2015 (E) & 3.9 & 570 & 6.84 & & & & 0.68 & \\*
& 2012 (E) & 2.2 & 430 & 5.12 & & & & 0.51 & \\*
& 2009 (E) & 5.1 & 810 & 6.35 & & & & 0.64 & \\
\midrule
\multirow{4}{*}{Tourtemagne (CH)} & 2018 (E) & 1.8 & 210 & 8.33 & \multirow{3}{*}{13.02} & \multirow{3}{*}{4560} & \multirow{3}{*}{ns} & 0.83 & \multirow{3}{*}{ns} \\*
& 2017 (E) & 3.0 & 370 & 8.11 & & & & 0.81 & \\*
& 2016 (E) & 5.5 & 263 & 20.91 & & & & 2.09 & \\*
& 2015 (E) & 3.4 & 233 & 14.72 & & & & 1.47 & \\
\midrule
Dashidaira (JP) & 1995-2006 (E) & 6000.0 & ns & ns & ns & 545455 & 1400 & ns & 39.0 \\
\midrule
\multirow{4}{*}{Tourtemagne (CH)} & 2018 (E) & 1.8 & 210 & 8.33 & \multirow{3}{*}{13.02} & \multirow{3}{*}{4560} & \multirow{3}{*}{ns} & 0.83 & \multirow{3}{*}{ns} \\*
& 2017 (E) & 3.0 & 370 & 8.11 & & & & 0.81 & \\*
& 2016 (E) & 5.5 & 263 & 20.91 & & & & 2.09 & \\*
& 2015 (E) & 3.4 & 233 & 14.72 & & & & 1.47 & \\
\midrule
Dashidaira (JP) & 1995-2006 (E) & 6000.0 & ns & ns & ns & 545455 & 1400 & ns & 39.0 \\
\bottomrule
\end{longtable}
\end{landscape}
\end{document}