# Landscape mode causes a blankpage

I'm using this code for showing an image in landscape mode:

\begin{landscape}

\begin{figure}[H]
\centering
\includegraphics[width=\hsize]{./images/SelectDVA.png}
\caption{DVA part of the Use Case \ref{sec:use_case_2}.}
\end{figure}

\end{landscape}


This causes the output to have a blank page immediately after the rotated page containing the image.

It seems that using landscape causes a page break, is it true?

How can I prevent this behaviour?

-
landscape won't leave a blank page but it causes a page break. You can use afterpage to avoid the white space produced thereby. –  Harish Kumar Nov 27 '12 at 15:32
Never ever include a figure in landscape! –  Stephan Lehmke Nov 27 '12 at 15:36

landscape will not produce blank pages but cause a page break where it is introduced. This will result in undesired white space in the previous page. This can be avoided by using the afterpage package:

\documentclass{article}
\usepackage{lipsum}
\usepackage{graphicx}
\usepackage{afterpage}
\usepackage{lscape}
\begin{document}
\lipsum[1-2]
\afterpage{
\begin{landscape}

\begin{figure}[H]
\centering
\includegraphics[width=\hsize]{example-image-a}
\caption{DVA part of the Use Case \ref{sec:use_case_2}.}
\end{figure}

\end{landscape}
}
\lipsum[3-8]

\end{document}

-
can you explain me what is the \lipsum command doing?thks in advance –  Matteo Nov 27 '12 at 15:59
@Matteo It's just filler en.wikipedia.org/wiki/Lipsum –  David Carlisle Nov 27 '12 at 16:53