I want to place a tikzpicture in landscape mode in the center of an A4 page. However, I can't use the \textwidth and \textheight commands because this will result in overfull \hbox... or overfull \vbox... errors and an empty first page. I assume there is some tiny margin or indentation somewhere somehow?
I've looked at a couple of threads here, but nothing worked so far. MWE:
\documentclass[a4paper,landscape]{minimal}
\usepackage[margin=1cm]{geometry}
\usepackage{tikz}
\begin{document}
\begin{center}
\begin{tikzpicture}
\draw (0, 0) rectangle (0.999\textwidth,0.999\textheight);
% this will give "overfull \hbox..." or "overfull \vbox..." errors
% and create an empty first page
% \draw (0, 0) rectangle (\textwidth,\textheight);
\end{tikzpicture}
\end{center}
\end{document}
Thank you!
