I'm trying to insert a graphic and stretch it to textwidth and textheight. I get a overfull box and an empty page befor the graphic. But it works when I only strech in horizontal reps vertical direction. Why I can't stretch in both directions?
This works as I want
\documentclass[]{scrartcl}
\usepackage[ngerman]{babel}
\usepackage{mwe}
\setlength{\parindent}{0pt}
\pagestyle{empty}
\begin{document}
\includegraphics[height=\textheight]{example-image-a}
\end{document}
But this yields an overfull vbox and an empty page
\documentclass[]{scrartcl}
\usepackage[ngerman]{babel}
\usepackage{mwe}
\setlength{\parindent}{0pt}
\pagestyle{empty}
\begin{document}
\includegraphics[height=\textheight, width=\textwidth]{example-image-a}
\end{document}
The only difference is the width=\textwidth
.
\includegraphics[height=.9999\textheight,width=\textwidth]{example-image-a}
. Sounds like a roundoff issue. Note that an extra9
, that is.99999
, breaks it again.overfull hbox
I also needwidth=.9999\textwidth
. I also think, it's a roundoff issue because the log says0.16693pt
to high.