[texhax] Section header of inserted pdfpages landscape

Johnny yggdrasil at gmx.co.uk
Tue Sep 6 22:57:56 CEST 2011


Hi, 

I am using \pdfpages to insert a pdfdocument into an appendix of my
latex-file. The inserted file is in landscape and I would like to have a
section header on the first page of the inserted document. I realise I
have to do some scaling and maybe some rotations to achieve this , but
do not succeed. Any ideas would be highly appreciated!


Snippets of what I am trying without greater success:

\documentclass[11pt,a4paper]{article}
\usepackage[final]{pdfpages}
\usepackage{lscape}
\usepackage[toc,page]{appendix}

\begin{document}
\title{My test document}
\maketitle
\tableofcontents

...

\begin{appendices}

%% \section{Review comments}

%% Close, but header goes in portrait mode and page number only on the first page
%% \includepdf[pages=1, landscape, scale = 0.7, pagecommand = \section{Review comments}]{all_comments_20110602.pdf}
%% \includepdf[pages=2-3, landscape, scale = 0.7]{all_comments_20110602.pdf}

%% Close, landscape header, but placed too low in document, and page number only on the first page
%% \begin{landscape}
%% \includepdf[pages=1, landscape, scale = 0.7, pagecommand = \section{Review comments}]{all_comments_20110602.pdf}
%% \includepdf[pages=2-3, landscape, scale = 0.7]{all_comments_20110602.pdf}
%% \end{landscape}

%% Good, but different style of \includegraphics and \includepdf, and the pagenum again!
%% \begin{landscape}
%% \section{Review comments}
%% \fbox{\includegraphics[page=1, scale = 0.7]{all_comments_20110602.pdf}}
%% \includepdf[pages=2-3, landscape, scale = 0.7]{all_comments_20110602.pdf}
%% \end{landscape}

%% Good, but different style of \includegraphics and \includepdf, and the pagenum again!
%% \begin{landscape}
%% \section{Review comments}
%% \fbox{\includegraphics[page=1, scale = 0.7, trim=0mm 0mm 0mm 0mm]{all_comments_20110602.pdf}}
%% \includepdf[pages=2-3, landscape, scale = 0.7]{all_comments_20110602.pdf}
%% \end{landscape}

%% Working, but header on separate page
\section{Review comments}
\includepdf[pages=1-3, landscape]{all_comments_20110602.pdf}

\end{appendices}
\end{document}

-- 
Johnny


More information about the texhax mailing list