我正在尝试将长表格放入页边距内。我尝试遵循其他用户在同一主题上提供的建议,但似乎没有任何效果。任何帮助都将不胜感激。以下是我已实现的文本:
\documentclass[12pt,twoside,a4paper]{book}
\usepackage[english]{babel}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{makeidx}
\usepackage{graphicx}
\usepackage[export]{adjustbox}
\usepackage{subcaption}
\usepackage{amsmath}
\usepackage{epstopdf}
\usepackage{cleveref}
\usepackage[nottoc]{tocbibind}
\usepackage{mathptmx}
\usepackage{longtable}
\usepackage{tabularx}
\usepackage{array, multirow, makecell}
\usepackage{gensymb}
\setcellgapes{1pt}
\makegapedcells
\usepackage[table]{xcolor}
\newcolumntype{M}[1]{>{\centering\arraybackslash}m{#1}}
\usepackage{mathtools}
\DeclarePairedDelimiter\ceil{\lceil}{\rceil}
\DeclarePairedDelimiter\floor{\lfloor}{\rfloor}
\usepackage{ltablex}
\usepackage{caption}
\captionsetup{font=small}
\usepackage{setspace}
\onehalfspacing
\usepackage{natbib}
\graphicspath{{./ImmaginiTesi/}}
\DeclareGraphicsExtensions{.pdf,.jpeg,.png,.jpg}
\usepackage{setspace}
\AtBeginDocument{%
\abovedisplayskip=10pt
\abovedisplayshortskip=10pt
\belowdisplayskip=10pt
\belowdisplayshortskip=10pt
}
\allowdisplaybreaks
\begin{document}
\setlength\LTcapwidth{\textwidth}
\setlength\LTleft{0pt}
\setlength\LTright{0pt}
\begin{longtable}{@{\extracolsep{\fill}}*{8}{c}@{}}
\caption{Take-off performances and flight data of an A320-200 for engine-boosted take-off and electromagnetic launch}\\
\hline\hline
\multicolumn{8}{c}{\textbf{Aircraft mission}} \\
\multicolumn{2}{l}{\textbf{Parameter}} & \multicolumn{2}{c}{\textbf{A320 certification}} & \multicolumn{2}{c}{\textbf{EML same MTOW}} & \multicolumn{2}{c}{\textbf{EML same range}}\\
\multicolumn{2}{l}{Maximum Take-Off Weight} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1} \\
\multicolumn{2}{l}{Payload} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1} \\
\multicolumn{2}{l}{Fuel} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1}\\
\multicolumn{2}{l}{Range} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1}\\
\hline
\multicolumn{8}{c}{\textbf{Take-off performance}} \\
\multicolumn{2}{l}{\textbf{Parameter}} & \multicolumn{2}{c}{\textbf{Engine Take-off}} & \multicolumn{2}{c}{\textbf{EML take-off}} & & \\
\multicolumn{2}{l}{Climb out gradient} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1} & & \\
\multicolumn{2}{l}{Maximum lift coefficient} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1} & & \\
\multicolumn{2}{l}{Aerodynamic efficiency} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1} & & \\
\multicolumn{2}{l}{Flap deflection} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1} & & \\
\multicolumn{2}{l}{Stall Speed} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1} & & \\
\multicolumn{2}{l}{Rotation speed} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1} & & \\
\multicolumn{2}{l}{Lift-off speed} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1} & & \\
\multicolumn{2}{l}{Safety Screen Speed} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1} & & \\
\multicolumn{2}{l}{Take-off run time} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1} & & \\
\multicolumn{2}{l}{Take-off airborne time} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1} & & \\
\multicolumn{2}{l}{Take-off run distance} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1} & & \\
\multicolumn{2}{l}{Take-off airborne distance} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1} & & \\
\multicolumn{2}{l}{Take-off distance} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1} & & \\
\multicolumn{2}{l}{Balanced field length} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1} & & \\
\multicolumn{2}{l}{Take-off field length} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1} & & \\
\hline
\multicolumn{8}{c}{\textbf{Take-off history of conventional A320}} \\
\textbf{Parameter} & \textbf{Altitude} & \textbf{Weight} & \textbf{Fuel} & \textbf{Mach} & \textbf{Speed} & \textbf{Fuel flow} & \textbf{Thrust} \\
\multicolumn{1}{l}{Starting Condition} & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\
\multicolumn{1}{l}{Full Throttle to LOF} & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\
\multicolumn{1}{l}{Safety Screen} & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\
\multicolumn{1}{l}{Climb out phase} & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\
\hline
\multicolumn{8}{c}{\textbf{Take-off history with EML}} \\
\textbf{Parameter} & \textbf{Altitude} & \textbf{Weight} & \textbf{Fuel} & \textbf{Mach} & \textbf{Speed} & \textbf{Fuel flow} & \textbf{Thrust} \\
\multicolumn{1}{l}{Starting Condition} & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\
\multicolumn{1}{l}{Idle} & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\
\multicolumn{1}{l}{Full throttle} to LOF & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\
\multicolumn{1}{l}{Safety Screen} & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\
\multicolumn{1}{l}{Climb out phase} & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\
\hline
\multicolumn{8}{c}{\textbf{Flight Profile of conventional A320}} \\
\multicolumn{1}{l}{\textbf{Parameter}} & \textbf{Fuel} & \textbf{Time} & \textbf{Mass} & \textbf{Distance} \\
\multicolumn{1}{l}{Taxi out} & 1 & 1 & 1 & 1 & & & \\
\multicolumn{1}{l}{Take-off} & 1 & 1 & 1 & 1 & & & \\
\multicolumn{1}{l}{Climb} & 1 & 1 & 1 & 1 & & & \\
\multicolumn{1}{l}{Cruise} & 1 & 1 & 1 & 1 & & & \\
\multicolumn{1}{l}{Descent} & 1 & 1 & 1 & 1 & & & \\
\multicolumn{1}{l}{Landing} & 1 & 1 & 1 & 1 & & & \\
\multicolumn{1}{l}{Taxi-in} & 1 & 1 & 1 & 1 & & & \\
\hline
\multicolumn{8}{c}{\textbf{Flight Profile with EML}} \\
\multicolumn{1}{l}{\textbf{Parameter}} & \textbf{Fuel} & \textbf{Time} & \textbf{Mass} & \textbf{Distance} \\
\multicolumn{1}{l}{Taxi out} & 1 & 1 & 1 & 1 & & & \\
\multicolumn{1}{l}{Take-off} & 1 & 1 & 1 & 1 & & & \\
\multicolumn{1}{l}{Climb} & 1 & 1 & 1 & 1 & & & \\
\multicolumn{1}{l}{Cruise} & 1 & 1 & 1 & 1 & & & \\
\multicolumn{1}{l}{Descent} & 1 & 1 & 1 & 1 & & & \\
\multicolumn{1}{l}{Landing} & 1 & 1 & 1 & 1 & & & \\
\multicolumn{1}{l}{Taxi-in} & 1 & 1 & 1 & 1 & & & \\
\hline\hline
\label{table:Friction}
\end{longtable}
\end{document}
答案1
该解决方案用于geometry
获取更合理的页边距、booktabs
更好的规则、makecell
旋转一些标题并确保格式一致。
事实上,我认为可以更有用、更简洁地呈现信息。也许并非所有数字都包含1
在您的真实数据中,但这也可能影响表格的布局,除非它们都是(细)整数。在这种情况下,您应该想要使用siunitx
。有关详细信息,请参阅手册。
就我个人而言,我认为这不适合作为单个表格。这确实没有意义,我认为最好将表格拆分成不同的表格。如果将表格拆分成 4 个,则可以合并表格 5 和 6 以及表格 7 和 8,它们共享共同的列标题。
无论如何,这是一个一劳永逸的解决方案。就像大多数一刀切的解决方案一样,它实际上是一种一刀切的答案。
\documentclass[12pt,twoside,a4paper]{book}
\usepackage{mathptmx}
\usepackage{mathtools}
\usepackage{geometry}
\usepackage{array,rotating,makecell,booktabs,longtable}
\usepackage{caption}
\captionsetup{font=small}
\usepackage{setspace}
\onehalfspacing
\setcellgapes{1pt}
\makegapedcells
\AtBeginDocument{%
\abovedisplayskip=10pt
\abovedisplayshortskip=10pt
\belowdisplayskip=10pt
\belowdisplayshortskip=10pt
}
\allowdisplaybreaks
\begin{document}
\setlength\LTcapwidth{\textwidth}
\renewcommand\theadfont{\bfseries}
\renewcommand\theadgape{}
\settowidth\rotheadsize{\theadfont Fuel Flow}
\renewcommand\theadalign{cb}
\renewcommand\rotheadgape{}
\begin{longtable}{l*{7}{c}}
\caption{Take-off performances and flight data of an A320-200 for engine-boosted take-off and electromagnetic launch}\\
\toprule
\endfirsthead
\toprule
\endhead
\bottomrule
\endfoot
\multicolumn{8}{c}{\thead{Aircraft mission}} \\
\multicolumn{2}{l}{\multirowthead{2}[][l]{Parameter}} & \multicolumn{2}{c}{\multirowthead{2}{A320\\certification}} & \multicolumn{2}{c}{\multirowthead{2}{EML\\same MTOW}} & \multicolumn{2}{c}{\multirowthead{2}{EML\\same range}}\\
\midrule
\multicolumn{2}{l}{Maximum Take-Off Weight} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1} \\
\multicolumn{2}{l}{Payload} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1} \\
\multicolumn{2}{l}{Fuel} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1}\\
\multicolumn{2}{l}{Range} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1}\\
\midrule
\multicolumn{8}{c}{\thead{Take-off performance}} \\
\multicolumn{2}{l}{\theadfont Parameter} & \multicolumn{2}{c}{\thead{Engine Take-off}} & \multicolumn{2}{c}{\thead{EML take-off}} & & \\
\midrule
\multicolumn{2}{l}{Climb out gradient} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1} & & \\
\multicolumn{2}{l}{Maximum lift coefficient} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1} & & \\
\multicolumn{2}{l}{Aerodynamic efficiency} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1} & & \\
\multicolumn{2}{l}{Flap deflection} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1} & & \\
\multicolumn{2}{l}{Stall Speed} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1} & & \\
\multicolumn{2}{l}{Rotation speed} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1} & & \\
\multicolumn{2}{l}{Lift-off speed} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1} & & \\
\multicolumn{2}{l}{Safety Screen Speed} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1} & & \\
\multicolumn{2}{l}{Take-off run time} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1} & & \\
\multicolumn{2}{l}{Take-off airborne time} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1} & & \\
\multicolumn{2}{l}{Take-off run distance} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1} & & \\
\multicolumn{2}{l}{Take-off airborne distance} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1} & & \\
\multicolumn{2}{l}{Take-off distance} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1} & & \\
\multicolumn{2}{l}{Balanced field length} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1} & & \\
\multicolumn{2}{l}{Take-off field length} & \multicolumn{2}{c}{1} & \multicolumn{2}{c}{1} & & \\
\pagebreak
\multicolumn{8}{c}{\thead{Take-off history of conventional A320}} \\
\theadfont Parameter & \rothead{Altitude} & \rothead{Weight} & \rothead{Fuel} & \rothead{Mach} & \rothead{Speed} & \rothead{Fuel flow} & \rothead{Thrust} \\
\midrule
Starting Condition & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\
Full Throttle to LOF & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\
Safety Screen & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\
Climb out phase & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\
\midrule
\multicolumn{8}{c}{\thead{Take-off history with EML}} \\
\theadfont Parameter & \rothead{Altitude} & \rothead{Weight} & \rothead{Fuel} & \rothead{Mach} & \rothead{Speed} & \rothead{Fuel flow} & \rothead{Thrust} \\
\midrule
Starting Condition & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\
Idle & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\
Full throttle to LOF & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\
Safety Screen & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\
Climb out phase & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\
\midrule
\multicolumn{8}{c}{\thead{Flight Profile of conventional A320}} \\
\theadfont Parameter & \rothead{Fuel} & \rothead{Time} & \rothead{Mass} & \rothead{Distance} \\
\midrule
Taxi out & 1 & 1 & 1 & 1 & & & \\
Take-off & 1 & 1 & 1 & 1 & & & \\
Climb & 1 & 1 & 1 & 1 & & & \\
Cruise & 1 & 1 & 1 & 1 & & & \\
Descent & 1 & 1 & 1 & 1 & & & \\
Landing & 1 & 1 & 1 & 1 & & & \\
Taxi-in & 1 & 1 & 1 & 1 & & & \\
\multicolumn{8}{c}{\thead{Flight Profile with EML}} \\
\theadfont Parameter & \rothead{Fuel} & \rothead{Time} & \rothead{Mass} & \rothead{Distance} \\
\midrule
Taxi out & 1 & 1 & 1 & 1 & & & \\
Take-off & 1 & 1 & 1 & 1 & & & \\
Climb & 1 & 1 & 1 & 1 & & & \\
Cruise & 1 & 1 & 1 & 1 & & & \\
Descent & 1 & 1 & 1 & 1 & & & \\
Landing & 1 & 1 & 1 & 1 & & & \\
Taxi-in & 1 & 1 & 1 & 1 & & &
\label{table:Friction}
\end{longtable}
\end{document}
编辑
拆分表格后的样子如下。(longtable
当然,这里其实不需要,但我保留它是为了概念验证。)这实际上是更多的简洁 - 表格适合放在 2 页而不是 3 页上。(我上面只显示了前 2 页,但表格的最后一部分在第三页。)
如果您愿意,您可以用来tabularx
将所有表格保持在标准宽度,但我认为与其他表格相比,某些表格的稀疏性会有所缺点。
\documentclass[12pt,twoside,a4paper]{book}
\usepackage{mathptmx}
\usepackage{mathtools}
\usepackage{geometry}
\usepackage{array,rotating,makecell,booktabs,longtable}
\usepackage{caption}
\captionsetup{font=small}
\usepackage{setspace}
\onehalfspacing
\setcellgapes{1pt}
\makegapedcells
\AtBeginDocument{%
\abovedisplayskip=10pt
\abovedisplayshortskip=10pt
\belowdisplayskip=10pt
\belowdisplayshortskip=10pt
}
\allowdisplaybreaks
\begin{document}
\setlength\LTcapwidth{\textwidth}
\renewcommand\theadfont{\bfseries}
\renewcommand\theadgape{}
\settowidth\rotheadsize{\theadfont Fuel Flow}
\renewcommand\theadalign{cb}
\renewcommand\rotheadgape{}
\begin{longtable}{l*{3}{c}}
\caption{Take-off performances and flight data of an A320-200 for engine-boosted take-off and electromagnetic launch}\\
\multicolumn{4}{l}{\theadfont Aircraft mission} \\
\toprule
\endfirsthead
\toprule
\endhead
\bottomrule
\endfoot
& \multicolumn{1}{c}{\multirowthead{2}{A320\\certification}} & \multicolumn{1}{c}{\multirowthead{2}{EML\\same MTOW}} & \multicolumn{1}{c}{\multirowthead{2}{EML\\same range}}\\
\midrule
Maximum Take-Off Weight & 1 & 1 & 1 \\
Payload & 1 & 1 & 1 \\
Fuel & 1 & 1 & 1\\
Range & 1 & 1 & 1
\label{table:Friction}
\end{longtable}
\begin{longtable}{l*{2}{c}}
\multicolumn{3}{l}{\theadfont Take-off performance} \\
\toprule
\endhead
\bottomrule
\endfoot
& \thead{Engine Take-off} & \thead{EML take-off} \\
\midrule
Climb out gradient & 1 & 1 \\
Maximum lift coefficient & 1 & 1 \\
Aerodynamic efficiency & 1 & 1 \\
Flap deflection & 1 & 1 \\
Stall Speed & 1 & 1 \\
Rotation speed & 1 & 1 \\
Lift-off speed & 1 & 1 \\
Safety Screen Speed & 1 & 1 \\
Take-off run time & 1 & 1 \\
Take-off airborne time & 1 & 1 \\
Take-off run distance & 1 & 1 \\
Take-off airborne distance & 1 & 1 \\
Take-off distance & 1 & 1 \\
Balanced field length & 1 & 1 \\
Take-off field length & 1 & 1
\end{longtable}
\begin{longtable}{l*{7}{c}}
\multicolumn{8}{l}{\theadfont Take-off history} \\
\toprule
& \rothead{Altitude} & \rothead{Weight} & \rothead{Fuel} & \rothead{Mach} & \rothead{Speed} & \rothead{Fuel flow} & \rothead{Thrust} \\
\midrule
\endhead
\bottomrule
\endfoot
\multicolumn{8}{l}{\theadfont Conventional A320} \\
Starting Condition & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\
Full Throttle to LOF & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\
Safety Screen & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\
Climb out phase & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\
\multicolumn{8}{l}{\theadfont With EML} \\
Starting Condition & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\
Idle & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\
Full throttle to LOF & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\
Safety Screen & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\
Climb out phase & 1 & 1 & 1 & 1 & 1 & 1 & 1
\end{longtable}
\settowidth\rotheadsize{\theadfont Distance}
\begin{longtable}{l*{4}{c}l*{4}{c}}
\multicolumn{10}{l}{\theadfont Flight Profile} \\
\toprule
& \rothead{Fuel} & \rothead{Time} & \rothead{Mass} & \rothead{Distance} && \rothead{Fuel} & \rothead{Time} & \rothead{Mass} & \rothead{Distance} \\
\midrule
\endhead
\bottomrule
\endfoot
\multicolumn{5}{l}{\theadfont Conventional A320} & \multicolumn{5}{l}{\theadfont With EML} \\
Taxi out & 1 & 1 & 1 & 1 & Taxi out & 1 & 1 & 1 & 1 \\
Take-off & 1 & 1 & 1 & 1 & Take-off & 1 & 1 & 1 & 1 \\
Climb & 1 & 1 & 1 & 1 & Climb & 1 & 1 & 1 & 1 \\
Cruise & 1 & 1 & 1 & 1 & Cruise & 1 & 1 & 1 & 1 \\
Descent & 1 & 1 & 1 & 1 & Descent & 1 & 1 & 1 & 1 \\
Landing & 1 & 1 & 1 & 1 & Landing & 1 & 1 & 1 & 1 \\
Taxi-in & 1 & 1 & 1 & 1 & Taxi-in & 1 & 1 & 1 & 1
\end{longtable}
\end{document}