[Tex/LaTex] In Miktex (Latex), how to rotate figure and fill the entire page with it

floatsmiktexrotating

I have a horizontal (say A3 page) .eps figure which I want to import into Miktex generated text, rotating it so that it will fill the entire A4 page rather than occupy only it's say 30% when imported vertically.

How do I do that?

I came across the rotation option but it didn't work nicely and moreover I didn't manage to find a working example that rotates the figure and the caption.

Three possible ways to rotate that I tried, following a request for a working example:

\begin{figure}[!h]
\centerline{
\includegraphics[width=1\textwidth,angle=90]{Image.eps}
}
\caption{Example}
\label{fig:example}
\end{figure}

and

\begin{sidewaysfigure}
\centerline{
\includegraphics[width=\columnwidth]{Image.eps}%
}
\caption{Example}
\label{fig:example}

\end{sidewaysfigure}

and

\blindtext
\begin{figure}[h!]
  \begin{adjustbox}{addcode={\begin{minipage}{\width}}{\vspace*{-10mm}\caption{
      Example
      }\end{minipage}},rotate=90,right}
      \includegraphics[scale=.4]{Image.eps}%
  \end{adjustbox}
\end{figure}
\blindtext

Neither rotates the caption. In the first case the capture is right-biased as well as in the last one (it also moves beyond the margins of the page)… In the second case, the caption is at least centralized 🙁

There are many excellent solutions on http://tex.stackexchange.com/questions/44427/rotate-picture-with-caption but unfortunately nothing seems to work – even the

\lipsum[2]
\hvFloat[
 floatPos=!htb,
 capWidth=h,
 capPos=r,
 capAngle=90,
 objectAngle=90,
 capVPos=c,
 objectPos=c]{figure}{\includegraphics[width=4cm]{Image.eps}}%
{Example}{fig:label}

rotates the image well (tiger example in the above link), but the caption is right-placed and not rotated…

I added an example of fig and what it gives with rotations above:
Original image
Rotated image. As you may see, the caption is on the right but is not rotated
(*) The example is from the Matlab standard library…

Thanks in advance

Best Answer

To solve it, use the landscape package. I put two includegraphics because it depends on the size of your image.

\documentclass[]{scrbook}
\usepackage{lscape}
\usepackage{graphicx}
\begin{document}
\begin{landscape}
\begin{figure}[!h]
   \centering
    %\includegraphics[width=1.0\textwidth]{Image.eps}
    \includegraphics[height=0.95\textheight]{Image.eps}
    \caption{Example}
    \label{fig:example}
\end{figure}
\end{landscape}
\end{document}
Related Question