I have from time to time a landscape page. I would like that text around it just normally flows. So something how figure environment works. So that it is not really important where you exactly define the figure, LaTeX moves it around so that text nicely flows. With landscape it does not do that.
Landscape – How to Wrap Text Around Landscape Page
landscapewrap
Related Solutions
If you are feeling brave you can use the afterpage
package and go
\afterpage{\begin{landscape}.....\end{landscape}}
If the table is big (or it has any verbatim material) it is better to put it in a separate file mytable.tex
and then just have
\afterpage{\input{mytable}}
this isn't a real float but it does delay starting the table until the next page break.
This makes it fit, I fixed the headings to use a correct font (never set multi-letter words in math italic) but then I commented out the whole heading. The column widths were dominated by the heading widths. Obviously you need some heading but I don't have the subject knowledge to suggest alternative heading layout.
\documentclass[a4paper]{article}
\usepackage{pdflscape,array,booktabs}
\begin{document}
\begin{landscape}
\setlength\tabcolsep{1pt}
\footnotesize
% Table generated by Excel2LaTeX from sheet 'Sheet1'
\begin{table}[htbp]
\centering
\vspace*{-1.5cm}
\caption{Add caption}
\hspace*{-5pt}\begin{tabular}{>{\raggedright}p{2.2cm}cccccccccccc}
\toprule
% Dependent variable: &
%\multicolumn{2}{c}{$CoJPoD_{\mathrm{{sov \ system|sov}}}$}&
%\multicolumn{2}{c}{$\Delta CoJPoD_{\mathrm{sov \ system|sov}}$}&
%\multicolumn{2}{c}{$CoJPoD_{\mathrm{sov|sov \ system}}$}&
%\multicolumn{2}{c}{$CoJPoD_{\mathrm{bank \ system|sov}}$}&
%\multicolumn{2}{c}{$\Delta CoJPoD_{\mathrm{bank \ system|sov}}$}&
%\multicolumn{2}{c}{$CoJPoD_{\mathrm{sov|bank \ system}}$}\\
% \midrule
& & & & & & & & & & & & \\
& \textbf{(1)} & \textbf{(2)} & \textbf{(3)} & \textbf{(4)} & \textbf{(5)} & \textbf{(6)} & (7) & (8) & (9) & (10) & (11) & (12) \\
& & & & & & & & & & & & \\
Constant & -11.116*** & -10.212*** & -6.668*** & -5.740*** & 13.194*** & 13.903*** & -7.270*** & -7.551*** & -6.224*** & -6.290*** & 16.927*** & 17.078*** \\
& (-2.975) & (-3.600) & (-2.980) & (-3.000) & (3.634) & (3.570) & (-2.607) & (-2.931) & (-2.907) & (-3.312) & (4.759) & (3.880) \\
Market Ret (6 months rolling) (\%) & 0.001*** & & 0.001*** & & 0.000 & & 0.000 & & 0.000* & & -0.000* & \\
& (3.065) & & (3.696) & & (-0.016) & & (1.086) & & (1.652) & & (-1.862) & \\
Market Vol (6 months rolling) (\%) & 0.008 & & 0.009 & & 0.008 & & -0.008 & & -0.002 & & -0.001 & \\
& (0.696) & & (1.143) & & (0.464) & & (-1.049) & & (-0.301) & & (-0.083) & \\
Market Ret (1 month avg) (\%) & & 0.025*** & & 0.020*** & & -0.020** & & 0.011** & & 0.012*** & & -0.029** \\
& & (3.235) & & (3.606) & & (-2.118) & & (2.283) & & (3.247) & & (-2.530) \\
Market Vol (1 month avg) (\%) & & -0.020*** & & -0.017*** & & 0.001 & & -0.010*** & & -0.006*** & & 0.004 \\
& & (-4.329) & & (-5.025) & & (0.105) & & (-3.444) & & (-2.804) & & (0.449) \\
Log GDP & 0.913*** & 0.840*** & 0.550*** & 0.475*** & -1.180*** & -1.239*** & 0.602** & 0.626*** & 0.522*** & 0.529*** & -1.492*** & -1.505*** \\
& (2.922) & (3.529) & (2.960) & (3.008) & (-3.878) & (-3.778) & (2.570) & (2.893) & (2.913) & (3.324) & (-4.890) & (-3.976) \\
Debt/GDP (\%) & 0.004*** & 0.004*** & 0.002** & 0.002** & 0.004* & 0.004* & 0.003*** & 0.003*** & 0.002** & 0.002** & 0.003 & 0.003 \\
& (2.836) & (2.861) & (1.981) & (1.975) & (1.775) & (1.764) & (2.657) & (2.689) & (2.062) & (2.075) & (1.540) & (1.566) \\
Reserve/Debt (\%) & 0.069** & 0.071** & 0.043** & 0.045** & 0.075** & 0.073** & 0.051*** & 0.053*** & 0.036*** & 0.037*** & 0.057** & 0.055** \\
& (2.512) & (2.372) & (2.130) & (1.964) & (2.405) & (2.367) & (2.974) & (3.099) & (2.746) & (2.803) & (2.204) & (2.202) \\
Term Spread (\%) & 0.042*** & 0.042*** & 0.038*** & 0.037*** & 0.012 & 0.015** & 0.012*** & 0.010*** & 0.009*** & 0.008*** & -0.003 & -0.002 \\
& (6.331) & (6.990) & (7.131) & (7.323) & (1.330) & (1.985) & (4.036) & (4.962) & (3.790) & (5.111) & (-0.248) & (-0.186) \\
VSTOXX (\%) & 0.004*** & 0.004*** & 0.003*** & 0.003*** & 0.008*** & 0.008*** & 0.003*** & 0.003*** & 0.001*** & 0.001*** & 0.007*** & 0.007*** \\
& (4.920) & (4.380) & (4.450) & (3.916) & (7.650) & (8.089) & (6.285) & (6.200) & (3.514) & (3.497) & (5.211) & (6.388) \\
& & & & & & & & & & & & \\
Bank fixed effects & Yes & Yes & Yes & Yes & Yes & Yes & Yes & Yes & Yes & Yes & Yes & Yes \\
No. of observations & 620 & 620 & 620 & 620 & 620 & 620 & 620 & 620 & 620 & 620 & 620 & 620 \\
Adjusted R\^2 & 0.728 & 0.720 & 0.774 & 0.761 & 0.822 & 0.822 & 0.718 & 0.721 & 0.772 & 0.774 & 0.784 & 0.785 \\
\bottomrule
\end{tabular}\hspace*{-5pt}%
\label{tab:addlabel}%
\end{table}%
\end{landscape}
\end{document}
Best Answer
It depends a little on the kind of landscape page you want to create. The easiest way to do it is to put your landscape material into a caption-less
[p]
float (except it is a figure or table which should have a caption). Without the caption the float number isn't increased so it doesn't affect other, "real" floats.You can create the landscape mode then by yourself by rotating the content. If this is a image use
\includegraphics[angle=90,width=\textheight]{file}
. For text you can use the following code or something similar. With this method the header and footer of the landscape page will not be different then on other pages. This might be want you want or not.(The
lipsum
package and macros are just for adding a dummy text to show the result and are not required in the final document.)If the
minipage
contains any special things like verbatim material you need to use either\Rotatebox
from therealboxes
package or theadjustbox
macro or environment from theadjustbox
package to do the rotation (and even theminipage
:\begin{adjustbox}{minipage=\textheight,angle=90} ... \end{adjustbox}
)Or you can use the
afterpage
package and macro to place the landscape content onto the next page. This doesn't allow for verbatim content but for the use ofpdflscape
which rotates the pages also inside the PDF viewer: