LaTeX forum ⇒ Theses, Books, Title pagesDeleting empty pages after a landscape mode and before landscape Topic is solved

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

Deleting empty pages after a landscape mode and before landscape

Postby byn » Fri Jul 08, 2022 11:26 pm

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 128 times


My pdf output is here
main-landscape-output.pdf
PDF file out put is here
(367.92 KiB) Downloaded 140 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 2021:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics
byn
Posts: 56
Joined: Fri Jun 10, 2022 12:27 pm

Deleting empty pages after a landscape mode and before landscape

Postby byn » Fri Jul 08, 2022 11:46 pm

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: 10068
Joined: Mon Mar 10, 2008 9:44 pm

Deleting empty pages after a landscape mode and before landscape

Postby Stefan Kottwitz » Sat Jul 09, 2022 12:30 am

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 6493 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

Postby byn » Sat Jul 09, 2022 12:57 am

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

Postby byn » Mon Aug 08, 2022 8:54 pm

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  Topic is solved

Postby byn » Fri Sep 23, 2022 5:45 am

resolved


Return to “Theses, Books, Title pages”

Who is online

Users browsing this forum: No registered users and 4 guests