![如何修复在章节标题正下方使用 sidewaystable 旋转表格后出现的问题?](https://linux22.com/image/283998/%E5%A6%82%E4%BD%95%E4%BF%AE%E5%A4%8D%E5%9C%A8%E7%AB%A0%E8%8A%82%E6%A0%87%E9%A2%98%E6%AD%A3%E4%B8%8B%E6%96%B9%E4%BD%BF%E7%94%A8%20sidewaystable%20%E6%97%8B%E8%BD%AC%E8%A1%A8%E6%A0%BC%E5%90%8E%E5%87%BA%E7%8E%B0%E7%9A%84%E9%97%AE%E9%A2%98%EF%BC%9F.png)
我试图在附录中的章节标题正下方添加一个大表格。
旋转包中的 Sidewaystable 可以工作,因为它可以很好地旋转整个表格,包括标题和脚注。
搜索了一段时间后,我发现 floatrow 包在 sidewaystable-environment 中添加了 [H] 选项,这样就可以强制将其放置在特定位置。
但是,当将该选项添加到章节标题下方的表格中时,表格不会位于标题下方,而是标题会向下滑动并位于表格上方。结果,标题前会留下一个额外的空白页。此外,标题位于页眉下方,我无法通过 \thispagestyle{empty} 将其删除。我在下面添加了一个最小的工作示例。
有没有办法将表格向上移动而不是将标题向下移动,以便修复 (i) 空白页和 (ii) 标题出现的问题?
\documentclass[openright]{scrbook}
\usepackage{booktabs}
\usepackage{rotating}
\usepackage{floatrow}
\begin{document}
\chapter{Appendix}
\begin{sidewaystable}[H]
\caption{Experimental settings.}
\begin{tabular}{lccc}
\toprule
Test & Yes & No & Yes \tabularnewline
\midrule
1 & 2 & 3 & 4\footnote{This is absolutely necessary information with reference to 4.}
\tabularnewline
\bottomrule
\end{tabular}
\label{table_exp_settings}
\end{sidewaystable}
\thispagestyle{empty}
\end{document}
答案1
我想你想要这样的东西:
\documentclass[openright]{scrbook}
\usepackage{booktabs}
\usepackage{rotating}
\usepackage{floatrow}
\begin{document}
\chapter{Appendix}
\rotatebox{90}{\parbox{.5\textheight}{%
\centering
\captionof{table}{Experimental settings.}
\bigskip
\begin{tabular}{lccc}
\toprule
Test & Yes & No & Yes \tabularnewline
\midrule
1 & 2 & 3 & 4\footnote{This is absolutely necessary information with reference to 4.}
\tabularnewline
\bottomrule
\end{tabular}
\label{table_exp_settings}
}}
\thispagestyle{empty}
\end{document}