# To have two horizontal pages in LaTeX

I need to have codes in the format A4. The codes are so long that I would like to make two pages in my document horizontal. Other pages should be vertical.

How can you make two pages horizontal in LaTeX?

Install and include this package

\usepackage{lscape}


Then when you wan't to make a horizontal (landscape) page just use landscape environment

\begin{landscape}
horizontal content here
\end{landscape}


For completeness, it should be noted that the lscape package only works with Latex. If you use pdfLatex, you should use the pdflscape style.