Theses, Books, Title pagesDeleting empty pages after a landscape mode and before landscape

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
Post Reply
byn
Posts: 56
Joined: Fri Jun 10, 2022 12:27 pm

Deleting empty pages after a landscape mode and before landscape

Post by byn »

I have been inserting figures in landscape mode using the \usepackage{pdflscape,lipsum}, however, I get empty pages after the landscape mode and before landscape mode, I tried to use \cleardoublepage before landscape and after landscape but it doesn't help.

My logfile is here
main-landscape.log
Log file after landscape compilation
(25.14 KiB) Downloaded 1643 times
My pdf output is here
main-landscape-output.pdf
PDF file out put is here
(367.92 KiB) Downloaded 1483 times
The link to a simplified working example is here; https://drive.google.com/file/d/1oeuQ_1 ... sp=sharing

Looking forward to your suggestions.

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

byn
Posts: 56
Joined: Fri Jun 10, 2022 12:27 pm

Deleting empty pages after a landscape mode and before landscape

Post by byn »

The link to the simplified working template is here; https://drive.google.com/file/d/1osOvih ... sp=sharing
User avatar
Stefan Kottwitz
Site Admin
Posts: 10358
Joined: Mon Mar 10, 2008 9:44 pm

Deleting empty pages after a landscape mode and before landscape

Post by Stefan Kottwitz »

Your images are perhaps too big so they don't fit on the page between the margins and are pushed to the next page, so you get an empty page. Make them smaller, or use this \makebox[0pt]{...} trick - see here, no empty page:
landscape.png
landscape.png (617.98 KiB) Viewed 137070 times
Stefan
LaTeX.org admin
byn
Posts: 56
Joined: Fri Jun 10, 2022 12:27 pm

Deleting empty pages after a landscape mode and before landscape

Post by byn »

This is working thank you!
byn
Posts: 56
Joined: Fri Jun 10, 2022 12:27 pm

Deleting empty pages after a landscape mode and before landscape

Post by byn »

The empty pages are reoccuring when multiple landscape pages are being included. How do you avert this? See code below despite using the \makebox[opt] and template here; https://drive.google.com/file/d/1_tNann ... sp=sharing

\newpage
\begin{landscape}
\begin{figure}[ht!]
\vspace*{-0.750cm}
\begin{center}$
\begin{array}{c}
\makebox[0pt]{\includegraphics[width=1.5\textwidth, height =0.8\textheight]{fig3}}
\end{array}$
\end{center}
\vspace*{-0.5cm}
\caption{Landscape image 1}
\end{figure}
\cleardoublepage
\end{landscape}
\newpage
\begin{landscape}
\begin{figure}[ht!]
\vspace*{-0.750cm}
\begin{center}$
\begin{array}{c}
\makebox[0pt]{\includegraphics[width=1.5\textwidth, height =0.8\textheight]{fig3}}
\end{array}$
\end{center}
\vspace*{-0.5cm}
\caption{Landscape image 1}
\end{figure}
\cleardoublepage
\end{landscape}
\newpage
\begin{landscape}
\begin{figure}[ht!]
\vspace*{-0.750cm}
\begin{center}$
\begin{array}{c}
\makebox[0pt]{\includegraphics[width=1.5\textwidth, height =0.8\textheight]{fig3}}
\end{array}$
\end{center}
\vspace*{-0.5cm}
\caption{Landscape image 1}
\end{figure}
\cleardoublepage
\end{landscape}
\newpage
\begin{landscape}
\begin{figure}[ht!]
\vspace*{-0.750cm}
\begin{center}$
\begin{array}{c}
\makebox[0pt]{\includegraphics[width=1.5\textwidth, height =0.8\textheight]{fig3}}
\end{array}$
\end{center}
\vspace*{-0.5cm}
\caption{Landscape image 1}
\end{figure}
\cleardoublepage
\end{landscape}
\newpage
\begin{landscape}
\begin{figure}[ht!]
\vspace*{-0.750cm}
\begin{center}$
\begin{array}{c}
\makebox[0pt]{\includegraphics[width=1.5\textwidth, height =0.8\textheight]{fig3}}
\end{array}$
\end{center}
\vspace*{-0.5cm}
\caption{Landscape image 1}
\end{figure}
\cleardoublepage
\end{landscape}
\newpage
\begin{landscape}
\begin{figure}[ht!]
\vspace*{-0.750cm}
\begin{center}$
\begin{array}{c}
\makebox[0pt]{\includegraphics[width=1.5\textwidth, height =0.8\textheight]{fig3}}
\end{array}$
\end{center}
\vspace*{-0.5cm}
\caption{Landscape image 1}
\end{figure}
\cleardoublepage
\end{landscape}
\lipsum[2-9]
\newpage
\cleardoublepage
\begin{landscape}
\begin{figure}[ht!]
\vspace*{-0.750cm}
\begin{center}$
\begin{array}{c}
\makebox[0pt]{\includegraphics[width=1.5\textwidth, height =0.8\textheight]{fig4}}
\end{array}$
\end{center}
\vspace*{-0.5cm}
\caption{Landscape image 2}
\end{figure}
\cleardoublepage
\end{landscape}

PDF output is also attached. in the link for the template; https://drive.google.com/file/d/1_tNann ... sp=sharing
byn
Posts: 56
Joined: Fri Jun 10, 2022 12:27 pm

Deleting empty pages after a landscape mode and before landscape

Post by byn »

resolved
Post Reply