# put one page completely landscape [duplicate]

I have a document that is mostly in normal layout, but two sections need to be in landscape. The contents of the page turn without problem, including table and section. What doesn't turn on those pages are the header and the footer, and I'd like those to turn as well. How can I do that?

\documentclass{article}
\usepackage{lastpage}
\usepackage{lscape}
\usepackage{titlesec}
\newpagestyle{newstyle}{

[]
[]
{\small{Report - \sectiontitle}}
{}
{}
}
\titleformat{\section}
{\color{blue}\normalfont\Large\bfseries}
{\color{blue}\thesection}{1em}{}[\vspace{2pt}\titlerule]
\titleformat{\subsection}
{\color{blue}\normalfont\Large\bfseries}
{\color{blue}\thesubsection}{1em}{}
\titleformat{\subsubsection}
{\color{blue}\normalfont\Large\bfseries}
{\color{blue}\thesubsubsection}{1em}{}

\pagestyle{newstyle}
\begin{document}
\begin{landscape}
\section{A section}
Some Text

\begin{table}
\begin{tabular}{|c|c|c|c|c|c|}
\hline
foo & bar & bar & baz & foo & bar \\
\hline
a & a & a & a & a & a\\
\hline
\end{tabular}
\end{table}
\end{landscape}
\end{document}

• I advice you not to do that. The reader will get distracted by that. For example, page numbers will not be, where they just were. Confusing. – Johannes_B Dec 17 '13 at 15:43
• @Johannes_B, not my choice - I was asked to do this. – user857990 Dec 17 '13 at 16:05
• Is this just a one off requirement? If so, consider moving your landscape material to a separate document, and putting two dummy blank pages in the main document. Then you can either combine the printed pages by hand or use a PDF-stitching tool (like Preview on Mac) to assemble the pages as you need them. Of course if you have anything in the way of cross referencing etc this becomes painful, but for simple independent tables or graphics it works well. – Thruston Dec 17 '13 at 17:32
• There must be a solution in TeX to it, that's what I'm looking for. Someone has an idea? I'm glad that at least it seems to be uncommon and it was not due to a lack of search skills that I didn't find the solution. :) – user857990 Dec 17 '13 at 21:41
• Right below the question title is a link, find my alternative solution there. – Johannes_B Jun 25 '15 at 10:56