I have a problem similar to:
Problem between Sidewaystable and page header
I want to insert some blank space above the vbox such that the table isn't overlapping with the page header.
Due to GDPR I can't share my table but It's on the below form:
\documentclass[12pt]{article}
\usepackage{float}
\usepackage{adjustbox}
\usepackage{rotating}
\usepackage{fancyhdr}
\usepackage{lastpage}
\pagestyle{fancy}
\fancypagestyle{documentstyle}{
\fancyhf{} % clear all header and footer fields
\renewcommand{\headrulewidth}{0.2pt}
\lhead{\textit{Section 1}}
\rhead{\textit{Name}}
\cfoot{\thepage\ of \pageref{LastPage}}
}
\begin{document}
\newpage\pagestyle{documentstyle}
\setlength{\tabcolsep}{0.1cm}
\rotatebox{90}{
\vbox{
\begin{table}[H]
\centering
\begin{adjustbox}{width=1.5\textwidth,center=\textwidth}
\tiny
\begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|}
\hline
1& 1& 1& 1& 1& 1& 1& 1& 1& 1& 1& 1& 1& 1&1\\ \hline
1& 1& 1& 1& 1& 1& 1& 1& 1& 1& 1& 1& 1& 1&1\\ \hline
\end{tabular}
\end{adjustbox}
\end{table}
}}
\end{document}
adjustbox
for tables, as it leads to fontsize inconsistencies.adjustbox
was added. I useadjustbox
to move the caption relative to the table, my table is so large that the difference between\tiny
when usingadjustbox
and not usingadjustbox
is so small that I prefer usingadjustbox
in this case.tabcolsep
(6pt by default, and there are two of them between two adjacent columns), using multilined cells and of course, reducing the font size (in my opinion, under \footnotesize, it gets unreadable – and very likely unread.