页面内容在“横向”环境中恢复为纵向

页面内容在“横向”环境中恢复为纵向

我有一些宽表,所以我决定使用横向显示它们。我使用包landscape中的环境lscape来实现这一点。不幸的是,我遇到了一些奇怪的行为。有时页面会“变回”纵向模式。很难给出 MWE,因为您需要几个浮动表才能触发这一点。下面我提供了一个包含 4 个表的示例。

\documentclass[12pt]{article}%
\usepackage[margin=1in]{geometry}
\usepackage{lscape}
\usepackage[para,flushleft]{threeparttable}%

\begin{document}    
\begin{landscape}%

\begin{table}[htbp]\centering
\begin{threeparttable}
\caption{Aggregate ERR-REV regressions}
\label{tab_agg_errrev}
\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}
\begin{tabular}{l*{13}{c}}
\hline\hline
                    &\multicolumn{1}{c}{(1)}&\multicolumn{1}{c}{(2)}&\multicolumn{1}{c}{(3)}&\multicolumn{1}{c}{(4)}&\multicolumn{1}{c}{(5)}&\multicolumn{1}{c}{(6)}&\multicolumn{1}{c}{(7)}&\multicolumn{1}{c}{(8)}&\multicolumn{1}{c}{(9)}&\multicolumn{1}{c}{(10)}&\multicolumn{1}{c}{(11)}&\multicolumn{1}{c}{(12)}&\multicolumn{1}{c}{(13)}\\
                    &\multicolumn{1}{c}{GDP}&\multicolumn{1}{c}{HS}&\multicolumn{1}{c}{IP}&\multicolumn{1}{c}{PGDP}&\multicolumn{1}{c}{UE}&\multicolumn{1}{c}{TB3}&\multicolumn{1}{c}{AAA}&\multicolumn{1}{c}{CPI}&\multicolumn{1}{c}{CONS}&\multicolumn{1}{c}{FG}&\multicolumn{1}{c}{SG}&\multicolumn{1}{c}{NRI}&\multicolumn{1}{c}{RI}\\
\hline
Revision            &        0.35\sym{*}  &        0.86\sym{***}&        0.56\sym{***}&        0.73\sym{***}&        0.54\sym{***}&        0.33\sym{**} &        0.08         &        0.48\sym{**} &        0.02         &        0.47\sym{*}  &       -0.07         &        0.76\sym{***}&        0.75\sym{*}  \\
                    &      (0.17)         &      (0.15)         &      (0.14)         &      (0.20)         &      (0.12)         &      (0.13)         &      (0.12)         &      (0.17)         &      (0.20)         &      (0.23)         &      (0.15)         &      (0.23)         &      (0.29)         \\
[1em]
Constant            &       -0.09         &        0.02         &       -0.68         &        0.02         &       -0.03         &       -0.25\sym{***}&       -0.28\sym{***}&       -0.09         &        0.31         &        0.44         &        0.07         &        1.14         &        1.10         \\
                    &      (0.13)         &      (0.01)         &      (0.37)         &      (0.09)         &      (0.03)         &      (0.06)         &      (0.05)         &      (0.10)         &      (0.21)         &      (0.32)         &      (0.10)         &      (0.61)         &      (0.79)         \\
\hline
N                   &         689         &         689         &         689         &         689         &         689         &         490         &         490         &         490         &         490         &         490         &         490         &         490         &         490         \\
R2                  &       0.012         &       0.158         &       0.035         &       0.059         &       0.112         &       0.049         &       0.003         &       0.026         &       0.000         &       0.010         &       0.000         &       0.035         &       0.038         \\
\hline\hline
\end{tabular}
\begin{tablenotes}
\emph{Notes:} 
\end{tablenotes}
\end{threeparttable}
\end{table}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{table}[htbp] \centering
\begin{threeparttable}
\caption{Individual pooled ERR-REV regressions}
\label{tab_indpool_errev}

\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}
\begin{tabular}{l*{13}{c}}
\hline\hline
                    &\multicolumn{1}{c}{(1)}&\multicolumn{1}{c}{(2)}&\multicolumn{1}{c}{(3)}&\multicolumn{1}{c}{(4)}&\multicolumn{1}{c}{(5)}&\multicolumn{1}{c}{(6)}&\multicolumn{1}{c}{(7)}&\multicolumn{1}{c}{(8)}&\multicolumn{1}{c}{(9)}&\multicolumn{1}{c}{(10)}&\multicolumn{1}{c}{(11)}&\multicolumn{1}{c}{(12)}&\multicolumn{1}{c}{(13)}\\
                    &\multicolumn{1}{c}{GDP}&\multicolumn{1}{c}{HS}&\multicolumn{1}{c}{IP}&\multicolumn{1}{c}{PGDP}&\multicolumn{1}{c}{UE}&\multicolumn{1}{c}{TB3}&\multicolumn{1}{c}{AAA}&\multicolumn{1}{c}{CPI}&\multicolumn{1}{c}{CONS}&\multicolumn{1}{c}{FG}&\multicolumn{1}{c}{SG}&\multicolumn{1}{c}{NRI}&\multicolumn{1}{c}{RI}\\
\hline
Revision            &       -0.32\sym{***}&        0.19\sym{***}&       -0.25\sym{***}&       -0.32\sym{***}&        0.24\sym{**} &        0.11         &       -0.15\sym{**} &       -0.20\sym{*}  &       -0.44\sym{***}&       -0.44\sym{***}&       -0.47\sym{***}&       -0.35\sym{***}&       -0.27\sym{***}\\
                    &      (0.04)         &      (0.05)         &      (0.04)         &      (0.04)         &      (0.08)         &      (0.07)         &      (0.05)         &      (0.09)         &      (0.04)         &      (0.04)         &      (0.04)         &      (0.09)         &      (0.05)         \\
[1em]
Constant            &       -0.32         &        0.01         &       -1.11\sym{***}&        0.18         &        0.00         &       -0.31\sym{***}&       -0.29\sym{***}&       -0.14         &        0.25         &        0.40         &       -0.05         &        0.74         &       -0.08         \\
                    &      (0.16)         &      (0.01)         &      (0.32)         &      (0.13)         &      (0.03)         &      (0.06)         &      (0.05)         &      (0.12)         &      (0.14)         &      (0.32)         &      (0.12)         &      (0.64)         &      (0.96)         \\
\hline
N                   &       19382         &       18613         &       18504         &       19199         &       19657         &       12551         &       10921         &       12643         &       12623         &       11829         &       11858         &       12336         &       12355         \\
R2                  &       0.045         &       0.014         &       0.022         &       0.058         &       0.029         &       0.007         &       0.015         &       0.011         &       0.077         &       0.050         &       0.126         &       0.032         &       0.022         \\
\hline\hline
\end{tabular}

\begin{tablenotes}
\emph{Notes:} djfkgjkfgjkflgjlfgj
\end{tablenotes}

\end{threeparttable}
\end{table}%
%\afterpage{\clearpage}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{table}[htbp] \centering
\begin{threeparttable}
\caption{Model test: forecaster FE in ERR-REV regressions}
\label{tab_indidFE_errrev}

\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}
\begin{tabular}{l*{13}{c}}
\hline\hline
                    &\multicolumn{1}{c}{(1)}&\multicolumn{1}{c}{(2)}&\multicolumn{1}{c}{(3)}&\multicolumn{1}{c}{(4)}&\multicolumn{1}{c}{(5)}&\multicolumn{1}{c}{(6)}&\multicolumn{1}{c}{(7)}&\multicolumn{1}{c}{(8)}&\multicolumn{1}{c}{(9)}&\multicolumn{1}{c}{(10)}&\multicolumn{1}{c}{(11)}&\multicolumn{1}{c}{(12)}&\multicolumn{1}{c}{(13)}\\
                    &\multicolumn{1}{c}{GDP}&\multicolumn{1}{c}{HS}&\multicolumn{1}{c}{IP}&\multicolumn{1}{c}{PGDP}&\multicolumn{1}{c}{UE}&\multicolumn{1}{c}{TB3}&\multicolumn{1}{c}{AAA}&\multicolumn{1}{c}{CPI}&\multicolumn{1}{c}{CONS}&\multicolumn{1}{c}{FG}&\multicolumn{1}{c}{SG}&\multicolumn{1}{c}{NRI}&\multicolumn{1}{c}{RI}\\
\hline
Revision            &       -0.33\sym{***}&        0.11\sym{*}  &       -0.26\sym{***}&       -0.36\sym{***}&        0.19\sym{*}  &        0.08         &       -0.19\sym{***}&       -0.26\sym{*}  &       -0.47\sym{***}&       -0.44\sym{***}&       -0.47\sym{***}&       -0.35\sym{***}&       -0.32\sym{***}\\
                    &      (0.04)         &      (0.05)         &      (0.04)         &      (0.03)         &      (0.08)         &      (0.06)         &      (0.04)         &      (0.10)         &      (0.04)         &      (0.04)         &      (0.04)         &      (0.07)         &      (0.05)         \\
\hline
N                   &       19382         &       18613         &       18504         &       19199         &       19657         &       12551         &       10921         &       12643         &       12623         &       11829         &       11858         &       12336         &       12355         \\
R2                  &       0.050         &       0.005         &       0.025         &       0.082         &       0.019         &       0.004         &       0.027         &       0.018         &       0.096         &       0.049         &       0.135         &       0.034         &       0.032         \\
\hline\hline
\end{tabular}

\begin{tablenotes}
\emph{Notes:}
\end{tablenotes}

\end{threeparttable}
\end{table}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{table}[htbp] \centering
\begin{threeparttable}
\caption{Model test: decompose revision in aggregate ERR-REV regression}
\label{tab_agg_seprev}

\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}
\begin{tabular}{l*{13}{c}}
\hline\hline
                    &\multicolumn{1}{c}{(1)}&\multicolumn{1}{c}{(2)}&\multicolumn{1}{c}{(3)}&\multicolumn{1}{c}{(4)}&\multicolumn{1}{c}{(5)}&\multicolumn{1}{c}{(6)}&\multicolumn{1}{c}{(7)}&\multicolumn{1}{c}{(8)}&\multicolumn{1}{c}{(9)}&\multicolumn{1}{c}{(10)}&\multicolumn{1}{c}{(11)}&\multicolumn{1}{c}{(12)}&\multicolumn{1}{c}{(13)}\\
                    &\multicolumn{1}{c}{GDP}&\multicolumn{1}{c}{HS}&\multicolumn{1}{c}{IP}&\multicolumn{1}{c}{PGDP}&\multicolumn{1}{c}{UE}&\multicolumn{1}{c}{TB3}&\multicolumn{1}{c}{AAA}&\multicolumn{1}{c}{CPI}&\multicolumn{1}{c}{CONS}&\multicolumn{1}{c}{FG}&\multicolumn{1}{c}{SG}&\multicolumn{1}{c}{NRI}&\multicolumn{1}{c}{RI}\\
\hline
fcast               &        0.38\sym{*}  &        0.87\sym{***}&        0.58\sym{***}&        0.75\sym{***}&        0.54\sym{***}&        0.30\sym{*}  &        0.05         &        0.33         &        0.02         &        0.47\sym{*}  &       -0.06         &        0.79\sym{***}&        0.78\sym{**} \\
                    &      (0.17)         &      (0.16)         &      (0.14)         &      (0.20)         &      (0.12)         &      (0.13)         &      (0.11)         &      (0.19)         &      (0.20)         &      (0.19)         &      (0.15)         &      (0.23)         &      (0.30)         \\
[1em]
lfcast              &       -0.55\sym{*}  &       -0.87\sym{***}&       -0.75\sym{***}&       -0.77\sym{***}&       -0.60\sym{***}&       -0.34\sym{*}  &       -0.13         &       -0.65\sym{***}&       -0.02         &        0.21         &        0.39         &       -0.84\sym{**} &       -0.58\sym{*}  \\
                    &      (0.22)         &      (0.17)         &      (0.20)         &      (0.20)         &      (0.12)         &      (0.14)         &      (0.11)         &      (0.18)         &      (0.25)         &      (0.27)         &      (0.22)         &      (0.29)         &      (0.26)         \\
[1em]
Constant            &        0.41         &        0.03         &       -0.07         &        0.13         &        0.30\sym{*}  &       -0.02         &        0.32         &        0.95\sym{***}&        0.22         &       -0.52         &       -0.50\sym{*}  &        1.38         &        0.56         \\
                    &      (0.32)         &      (0.04)         &      (0.49)         &      (0.14)         &      (0.12)         &      (0.12)         &      (0.18)         &      (0.25)         &      (0.38)         &      (0.33)         &      (0.23)         &      (0.86)         &      (0.64)         \\
\hline
$p(\beta_1+\beta_2=0)$   &      0.0793         &      0.8440         &      0.2026         &      0.4726         &      0.0058         &      0.0779         &      0.0024         &      0.0000         &      0.8041         &      0.0000         &      0.0034         &      0.6985         &      0.2439         \\
N                   &         689         &         689         &         689         &         689         &         689         &         490         &         490         &         490         &         490         &         490         &         490         &         490         &         490         \\
R2                  &       0.018         &       0.158         &       0.040         &       0.061         &       0.135         &       0.073         &       0.086         &       0.075         &       0.013         &       0.046         &       0.016         &       0.035         &       0.048         \\
\hline\hline
\end{tabular}

\begin{tablenotes}
\emph{Notes:}
\end{tablenotes}

\end{threeparttable}
\end{table}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\end{landscape}%    
\end{document}

当我编译代码时,第一页是横向的,第二页是纵向的,部分表格被截断,第三页又是横向的。这是我得到的结果:

编译页面

答案1

使用

\begin{table}[htb]

代替

\begin{table}[htbp]

它似乎lscape不会旋转浮动页面。这已经是很久以前的事了,我不记得这是记录在案的功能还是错误。我现在假设是前者。

相关内容