How to add a landscape page in LaTeX?

Landscape pages are interesting in documents where we want to print some large image or table, or any kind of large content, and for readability, we want it to be on one single page. In this tutorial, we are going to discuss different ways to add a landscape page inside a LaTeX document.

1. Basic landscape page

To add a simple landscape page to your LaTeX document, you can make use of the lscape packageOpens in a new tab. and the landscape environment that it provides. Its use is straightforward: it simply prints the contents inside the environment on a landscaped page.

Illustrative example:

% Add landscape page in LaTeX

% Required package


    \Huge \textbf{A landscape page}


Compiling this code yields the following output:

Add landscape page in LaTeX
Landscape page inside a LaTeX document.

2. Rotating only figures or tables

Maybe we only want to rotate the large content, like a figure or a table, but not the whole page. To do so, we have the rotating packageOpens in a new tab., which provides a series of macros and environments to rotate different objects.

One of the most basic environments it provides is the sideways environment, which simply rotates 90 degrees counter-clockwise the contents inside it.

Here is an illustrative example:

% Rotate figures in latex

% Required package

This is a regular page with a rotated figure.



This produces the following page:

Rotate image latex
An image is rotated using the sideways environment.

There is also the slightly more sophisticated turn environment, which lets you specify, with a mandatory argument, the degrees of the counter-clockwise rotation.

The following code illustrates how one can rotate an image by 45 degrees using the turn environment provided by rotating package:

% Rotate image with a specific angle

% Required package

This is a regular page with a rotated figure by 45 degrees:



which yields the following result:

Rotate image with specific angle latex
An image rotated 45 degrees using the turn environment

3. Rotated floating objects

In the previous examples, we used general environments that rotate all their contents as a single box. This is generally not the kind of behavior we expect from figures and tables, since we are used to treating them as floating environments, with their label, caption and position specifiers.

When images are just boxes, some unexpected results may occur, since their positioning is not modified depending on their environment. However, when using them as floating environments, they adapt to different situations depending on the position specifiers.

For this reason, the sideways package provides a kind of floating sideways environment, called sidewaysfigure and sidewaystable. These environments behave like the common figure and table environments, except that they rotate the figure or table they insert.

Here is a simple example where we put into use these new environments:

% Rotating figures and tables

% Required package


    \caption{A beautiful image.}

    \caption{A new table.}
        these & are & the & contents & of \\ \hline
        sideways & table & 1 & 2 & 3 \\ \hline


which yields the following figure:

Rotate figure in latex
A rotated floating figure

and the following table:

A rotated floating table

We reached the end of this tutorial, If you have any remarks or suggestions, please feel free to reach us via email at admin@latex-tutorial.comOpens in a new tab.

Recent Posts