# [Tex/LaTex] Landscape figure in LaTeX

floatslandscape

I have a figure I'm trying to insert which is in landscape and I'm using the following (snipped) code:

\documentclass[12pt, oneside]{book}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{lscape}
\usepackage{rotating}
\usepackage{epstopdf}

\begin{document}

\begin{figure}[ht]
\includegraphics{../figures/pics/DivLibPropProfile}
\caption{Property profile of the diverse library compared to the compound pool.}
\label{fig:PropProf}
\end{figure}

\end{document}


When I compile this with pdfLaTeX the output behaves as I'd expect – page in portrait with the caption at the bottom but the figure in the "wrong" orientation.

However when I compile using LaTeX, the page is turned landscape with the figure now in the correct orientation but with the caption at what is now the left of the page rather than under the figure, which you should get using \begin{landscape}.

When I do use the landscape environment and compile with LaTeX the caption the whole page is turned upside-down and everything is wrong.

Any ideas how I can get the correct orientation of landscape figure on landscape page with the caption under the figure (attached for reference)? I also need to use LaTeX rather that pdfLaTeX for another package to function.

This should work for you, without removing "unnecessary" packages:

\documentclass[12pt, oneside]{book}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{lscape}
\usepackage{rotating}
\usepackage{epstopdf}

\begin{document}

\begin{sidewaysfigure}[ht]
\includegraphics{../figures/pics/DivLibPropProfile}
\caption{Property profile of the diverse library compared to the compound pool.}
\label{fig:PropProf}
\end{sidewaysfigure}

\end{document}


This is a general minimal example using rotating

\documentclass{article}
% For rotating figures, tables, etc.
%  including their captions
\usepackage{rotating}

\begin{document}

% A small example on how to use the "rotating" package.
%  Displays a figure and it's caption in landscape
\begin{sidewaysfigure}[ht]
\includegraphics[width=\textwidth]{figure.png}
\caption{Caption in landscape to a figure in landscape.}
\label{fig:LandscapeFigure}
\end{sidewaysfigure}

\end{document}