I have a wide table, which I want to put in landscape, like in the example below. But it overlaps with the page header!
\documentclass[a4paper,12pt]{scrbook}
\usepackage[pass]{geometry}
\usepackage{pdflscape}
\usepackage[automark]{scrpage2}
\pagestyle{scrheadings}
\setheadsepline{1pt}
\usepackage{lipsum}
\begin{document}
\chapter{first chapter}
\lipsum
\begin{landscape}
\begin{tabular}{c|ccccccccccccccc}
some wide table & 12345 & 12345 & 12345 & 12345 & 12345 & 12345 & 12345 & 12345 & 12345 & 12345 & 12345 & 12345 & 12345 & 12345 & 12345 \\
\end{tabular}
\end{landscape}
\end{document}
How can I avoid this? So far I only have part of a solution by reducing the page margins with
\newgeometry{
top=3cm,
bottom=1cm,
left=1cm,
right=1cm
}
before the landscape environment and \restoregeometry after it. But then I have to define the top margin manually and it will not result in a consistent header with respect to the rest of the document.



\begin{landscape} \small \setlength{\tabcolsep}{4pt}. – leandriis Jun 13 '19 at 14:36scalebox,resizeboxor by changing the font size (my answer). The drawback is that table font size does not match with the document one, if this were a problem for you. 2) Of course you can also adapt the table parameters (Zarko´s answer) to fit the page margins. 3) You can also split the table in more subtables and thus place them in more pages. Therewith, the document font size is maintained. 4) Or changing the document margins (your approach). Any other ideas? – Ñako Jun 14 '19 at 07:54