收录日期:2019/05/20 13:12:34 时间:2009-07-29 18:38:22 标签:layout,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.

For more information see this CTAN Link.