我正在编写一个文档,其中包含一些需要旋转的全页表。这很好,但浮动行为并不像我预期的那样工作 - 我有一些文本 1、一个带有全页表的 afterpage 环境、一些文本 2、一个带有全页表的 afterpage 环境,然后是一些文本 3。在包含一些文本 2 的页面上,底部有很多空白,我希望这些空白包含一些文本 3,只要我避免 \clearpage 调用。
示例代码在这里:
\documentclass{article}
\usepackage{booktabs}
\usepackage{bm}
%for rotated tables
\usepackage{pdflscape}
\usepackage{afterpage}
\newcommand{\vect}[1]{\boldsymbol{\mathbf{#1}}}
\begin{document}
text before tables
\begin{afterpage}
\clearpage
\begin{landscape}
\begin{table*}
\centering
\caption{a wide table}
\label{tab:simtable}
\begin{scriptsize}
\begin{scalebox}{.9}
\begin{tabular}{llrrrrrrrrrrrrrrr}
\toprule
& & \multicolumn{4}{c}{\textbf{Coverage}} & \multicolumn{4}{c}{\textbf{Mean}} & \multicolumn{3}{c}{\textbf{RMSE}} & \multicolumn{4}{c}{\textbf{CI width}}\\
\cmidrule(lr){3-6}\cmidrule(lr){7-10}\cmidrule(lr){11-13}\cmidrule(lr){14-17}
\textbf{Parameter} & \textbf{Symbol} & \textbf{B true} & \textbf{B full} & \textbf{F profile} & \textbf{F SE} & \textbf{True} & \textbf{B true} & \textbf{B full} & \textbf{F} & \textbf{B true} & \textbf{B full} & \textbf{F} & \textbf{B true} & \textbf{B full} & \textbf{F profile} & \textbf{F SE}\\
\midrule
T0mean\_eta1 & $\vect{\eta}_{1[1]}$ & 0.94 & 0.95 & 0.95 & 0.95 & 1.00 & 1.00 & 1.00 & 1.00 & 0.09 & 0.09 & 0.09 & 0.34 & 0.35 & 0.35 & 0.35 \\
T0mean\_eta2 & $\vect{\eta}_{1[2]}$ & 0.95 & 0.96 & 0.94 & 0.95 & 1.00 & 1.00 & 1.01 & 1.00 & 0.10 & 0.11 & 0.10 & 0.42 & 0.43 & 0.43 & 0.42 \\
drift\_eta1\_eta1 & $\vect{A}_{[1,1]}$ & 0.95 & 0.94 & 0.97 & 0.96 & -0.40 & -0.40 & -0.42 & -0.40 & 0.04 & 0.05 & 0.04 & 0.17 & 0.19 & 0.18 & 0.17 \\
\bottomrule
\end{tabular}
\end{scalebox}
\end{scriptsize}
\end{table*}
\end{landscape}
\end{afterpage}
between tables between tables between tables between tables between tables between tables between tables between tables between tables between tables between tables between tables between tables between tables between tables between tables between tables between tables between tables between tables between tables between tables between tables between tables between tables between tables between tables between tables between tables between tables between tables between tables between tables between tables between tables between tables between tables between tables between tables between tables
\begin{afterpage}%
\begin{landscape}
\begin{table*}
\centering
\caption{another table}
\label{tab:simtable2}
\begin{scriptsize}
\begin{scalebox}{.9}
\begin{tabular}{llrrrrrrrrrrrrrrr}
\toprule
& & \multicolumn{4}{c}{\textbf{Coverage}} & \multicolumn{4}{c}{\textbf{Mean}} & \multicolumn{3}{c}{\textbf{RMSE}} & \multicolumn{4}{c}{\textbf{CI width}}\\
\cmidrule(lr){3-6}\cmidrule(lr){7-10}\cmidrule(lr){11-13}\cmidrule(lr){14-17}
\textbf{Parameter} & \textbf{Symbol} & \textbf{B true} & \textbf{B full} & \textbf{F profile} & \textbf{F SE} & \textbf{True} & \textbf{B true} & \textbf{B full} & \textbf{F} & \textbf{B true} & \textbf{B full} & \textbf{F} & \textbf{B true} & \textbf{B full} & \textbf{F profile} & \textbf{F SE}\\
\midrule
T0mean\_eta1 & $\vect{\eta}_{1[1]}$ & 0.94 & 0.96 & 0.87 & 0.94 & 1.00 & 1.13 & 1.04 & 1.09 & 0.31 & 0.29 & 0.38 & 1.64 & 1.24 & 29.71 & 1.42 \\
T0mean\_eta2 & $\vect{\eta}_{1[2]}$ & 0.95 & 0.96 & 0.89 & 0.96 & 1.00 & 1.17 & 1.04 & 1.08 & 0.44 & 0.37 & 0.51 & 2.33 & 1.66 & 106.23 & 1.92 \\
drift\_eta1\_eta1 & $\vect{A}_{[1,1]}$ & 0.95 & 0.88 & 0.88 & 0.88 & -0.40 & -0.55 & -0.75 & -0.51 & 0.24 & 0.41 & 0.46 & 0.98 & 1.37 & 0.97 & 1.00 \\
drift\_eta2\_eta1 & $\vect{A}_{[1,2]}$ & 0.96 & 0.95 & 0.90 & 0.95 & 0.00 & 0.12 & 0.15 & 0.06 & 0.18 & 0.21 & 0.44 & 0.75 & 0.87 & 0.75 & 0.88 \\
drift\_eta1\_eta2 & $\vect{A}_{[2,1]}$ & 0.97 & 0.89 & 0.90 & 0.90 & 0.10 & 0.17 & 0.27 & 0.15 & 0.13 & 0.21 & 0.30 & 0.60 & 0.76 & 0.57 & 0.64 \\
drift\_eta2\_eta2 & $\vect{A}_{[2,2]}$ & 0.95 & 0.92 & 0.86 & 0.94 & -0.20 & -0.33 & -0.41 & -0.28 & 0.17 & 0.26 & 0.37 & 0.64 & 0.88 & 0.70 & 0.76 \\
manifestvar\_Y1\_Y1 & $\vect{\Theta}_{[1,1]}$ & 0.94 & 0.95 & 0.85 & 0.94 & 1.00 & 0.97 & 0.94 & 0.94 & 0.11 & 0.17 & 0.19 & 0.50 & 0.59 & 0.38 & 24.80 \\
\bottomrule
\end{tabular}
\end{scalebox}
\end{scriptsize}
\end{table*}
\end{landscape}
\end{afterpage}
text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before text after tables but some should appear before
\end{document}
答案1
\afterpage
是带有参数的命令而不是环境,所以
\begin{afterpage}
\clearpage
是
\begingroup
\afterpage{\clearpage}
因此仅\clearpage
由该点处理\afterpage
并\begin{landscape}
强制分页。