I'm trying to rotate some pages within my PDF with the landscape package. Unfortunately LaTeX creates an empty page in front of every landscaped page.
Can anyone help?
Code: Select all
\documentclass[12pt,a4paper,onecolumn]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{helvet}
\usepackage[ngerman]{babel}
\usepackage[ngerman]{translator}
\usepackage{chngcntr}
\usepackage{graphicx}
\usepackage[automark]{scrpage2}
\usepackage{pdfpages}
\usepackage{tocloft}
\usepackage{pdflscape}
\newcommand{\changefont}[3]{
\fontfamily{#1} \fontseries{#2} \fontshape{#3} \selectfont}
\changefont{cmss}{m}{n}
%% - - - - - - - - - - - Text Formatierung - - - - - - - - - - - - - - - - - - - -
\usepackage[left=2cm,right=3.5cm,top=2.5cm,bottom=2cm]{geometry}
\PassOptionsToPackage{hyphens}{url}\usepackage{hyperref}
\linespread{1.5}
\hypersetup{%
pdfborder = {0 0 0}
}
%% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
\usepackage{nameref}
%% - - - - - - - - - - - - - - für Anhangverzeichnis - - - - - - - - - - - - - -
\newcounter{cap}
\setcounter{cap}{3}
\newcommand{\listappendicesname}{Anlagenverzeichnis}
\newcounter{appendixctr}
\newlistof{appendices}{apc}{\listappendicesname}
\newcommand{\appendices}[1]{\addcontentsline{apc}{appendices}{#1}}
\newcommand{\newappendix}[1]{\refstepcounter{appendices}\hypertarget{#1}{}\pdfbookmark[2]{#1}{#1}\section*{Anlage \arabic{cap}-\theappendices:\quad#1}\appendices{Anlage \arabic{cap}-\theappendices:\quad#1}}
%% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
\author{Anton Peters}
\begin{document}
\sffamily
\renewcommand{\contentsname}{Anlagenverzeichnis}
% Inhaltsverzeichnis
\pagestyle{plain}
\pagenumbering{arabic}
\listofappendices
\newpage
\newappendix{Leitfaden Besuchsverlauf}
\includegraphics[clip=true, trim= 0.9cm 0.5cm 0.9cm 0.9cm, height=\textheight,width=\linewidth, keepaspectratio]{../Anlage/Anlage_3-1_Leitfaden_BV.pdf}
\section{Leitfaden Einzelhandel}
\includegraphics[clip=true, trim= 0.9cm 0.5cm 0.9cm 0.9cm, height=\textheight,width=\linewidth, keepaspectratio]{../Anlage/Anlage_3-2_Leitfaden_H.pdf}
\begin{landscape}
\newappendix{Bedarfsanalyse Besuchsverkauf}
\includegraphics[clip=true, trim= 0.9cm 0.5cm 0.9cm 0.9cm, height=\textheight,width=1.5\linewidth, keepaspectratio]{../Anlage/Anlage_3-3_DatenerhebungBedarf_BV.pdf}
\clearpage
\newappendix{Bedarfsanalyse Einzelhandel}
\includegraphics[clip=true, trim= 0.9cm 0.5cm 0.9cm 0.9cm, height=\textheight,width=\linewidth, keepaspectratio]{../Anlage/Anlage_3-4_DatenerhebungBedarf_H.pdf}
\end{landscape}
\newappendix{Interviewprotokoll BV2}
\includegraphics[clip=true, trim= 0.9cm 0.5cm 0.9cm 0.9cm, height=\textheight,width=\linewidth, keepaspectratio]{../Anlage/Anlage_3-5_Interview_BV2.pdf}
\newappendix{Interviewprotokoll BV4}
\includegraphics[clip=true, trim= 0.9cm 0.5cm 0.9cm 0.9cm, height=\textheight,width=\linewidth, keepaspectratio]{../Anlage/Anlage_3-6_Interview_BV4.pdf}
\newappendix{Interviewprotokoll BV5}
\includegraphics[clip=true, trim= 0.9cm 0.5cm 0.9cm 0.9cm, height=\textheight,width=\linewidth, keepaspectratio]{../Anlage/Anlage_3-7_Interview_BV5.pdf}
\newappendix{Interviewprotokoll BV12}
\includegraphics[clip=true, trim= 0.9cm 0.5cm 0.9cm 0.9cm, height=\textheight,width=\linewidth, keepaspectratio]{../Anlage/Anlage_3-8_Interview_BV12.pdf}
\newappendix{Interviewprotokoll BV14}
\includegraphics[clip=true, trim= 0.9cm 0.5cm 0.9cm 0.9cm, height=\textheight,width=\linewidth, keepaspectratio]{../Anlage/Anlage_3-9_Interview_BV14.pdf}
\newappendix{Interviewprotokoll BV15}
\includegraphics[clip=true, trim= 0.9cm 0.5cm 0.9cm 0.9cm, height=\textheight,width=\linewidth, keepaspectratio]{../Anlage/Anlage_3-10_Interview_BV15.pdf}
\newappendix{Interviewprotokoll H1}
\includegraphics[clip=true, trim= 0.9cm 0.5cm 0.9cm 0.9cm, height=\textheight,width=\linewidth, keepaspectratio]{../Anlage/Anlage_3-11_Interview_H1.pdf}
\newappendix{Interviewprotokoll H2}
\includegraphics[clip=true, trim= 0.9cm 0.5cm 0.9cm 0.9cm, height=\textheight,width=\linewidth, keepaspectratio]{../Anlage/Anlage_3-12_Interview_H2.pdf}
\newappendix{Interviewprotokoll H4}
\includegraphics[clip=true, trim= 0.9cm 0.5cm 0.9cm 0.9cm, height=\textheight,width=\linewidth, keepaspectratio]{../Anlage/Anlage_3-13_Interview_H4.pdf}
\setcounter{cap}{4}
\setcounter{appendices}{0}
\begin{landscape}
\newappendix{Angebotsanalyse Besuchsverkauf}
\includegraphics[clip=true, trim= 0.9cm 0.5cm 0.9cm 0.9cm, height=\textheight,width=\linewidth, keepaspectratio]{../Anlage/Anlage_4-1_DatenerhebungAngebot_BV.pdf}
\end{landscape}
\begin{landscape}
\newappendix{Angebotsanalyse Einzelhandel}
\includegraphics[clip=true, trim= 0.9cm 0.5cm 0.9cm 0.9cm, height=\textheight,width=\linewidth, keepaspectratio]{../Anlage/Anlage_4-2_DatenerhebungAngebot_H.pdf}
\end{landscape}
\end{document}