Page Layoutlandscape | Empty Page

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
smepal
Posts: 2
Joined: Wed Feb 01, 2012 12:30 pm

landscape | Empty Page

Post by smepal »

Hi community,

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}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

landscape | Empty Page

Post by Stefan Kottwitz »

Hi,

the reason is that your included files are too big. If such an object doesn't fit to the page, LaTeX ends the page and starts a new one. That's why you got the empty pages.

Here's an example line of your code:

Code: Select all

\includegraphics[clip=true, trim= 0.9cm 0.5cm 0.9cm 0.9cm,height=\textheight,
  width=\linewidth, keepaspectratio]{../Anlage/Anlage_3-13_Interview_H4.pdf}
height=\textheight is too much, because you put a heading above which requires space too.

Stefan
LaTeX.org admin
Post Reply