I'm trying to add a sidewaysfigure to my document, but when I set the width to \textwidth
it comes out too wide.
This is my code:
\usepackage{rotating}
\begin{sidewaysfigure}
\centering
\begin{minipage}{\textwidth}
\caption{The caption}
\includegraphics[width=\textwidth]{img/diagramm_hs.png}\\
\source{The source}
\label{fig:diagramm_hs}
\end{minipage}
\end{sidewaysfigure}
As you can see, the image is wider than the textwidth (textwidth
is as wide as the line in the header), especially with the caption and source.
How can I make the image as large as possible on the page while everything, including caption and source, remain in the textarea?
EDIT: The image dimensions are 1327x960 px. This is my documentclass:
\documentclass[
paper=A4,
fontsize=12pt,
BCOR12mm,
DIV14,
parskip=half*,
headsepline,
listof=totoc,
footinclude=false,
headinclude=true,
final
]{scrartcl}
\includegraphics[width=\textwidth,height=\textheight,keepaspectratio]{img/diagramm_hs.png}
? – Mico Oct 12 '15 at 8:08\includegraphics[width=\dimexpr\textwidth-80pt]
. Otherwise it would be nice to know what the code for the header line looks like – musicman Oct 12 '15 at 11:56