Graphics, Figures & Tablesno break page with pdf in appendix and landscape mode

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
thibaud74
Posts: 13
Joined: Fri May 27, 2011 4:33 pm

no break page with pdf in appendix and landscape mode

Post by thibaud74 »

Hi,

I'd like to include just a pdf document in the appendix into a chapter on landscape format. When I use includepdf, I get a page break after the chapter title; and when I use includegraphics, I get a page break before the chapter title ???

Here I an example of code with some ideas found from forums, but I don't master them:

Code: Select all

\documentclass[book]
%\usepackage{rotating}
%\usepackage{lscape}
\usepackage{pdflscape}
%\usepackage[landscape]{geometry}

\begin{document}

\appendix

\chapter{My first document, normal mode}

\includepdf[scale=0.8]{document1.pdf}

\begin{landscape}

%\begin{sideways}


%\let\newpagegood\newpage    
%\let\newpage\relax

\chapter{My second document, landscape mode}

%\includepdf[pages={1},fitpaper,rotateoversize,landscape=true,scale=0.8]{document2.pdf}
\includegraphics[scale=0.8]{document2.pdf}
\end{landscape}
%\end{sideways}
\end{document}
Best,
Thibaud.

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

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

no break page with pdf in appendix and landscape mode

Post by Johannes_B »

Both, environment landscape, and includepdf do a clearpage before starting to work. That just is how it is.


Did i understand it right, that you want to have the chapter title rotated as well? Please don't, it is not only ugly, it confuses the reader in a printed work.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
thibaud74
Posts: 13
Joined: Fri May 27, 2011 4:33 pm

no break page with pdf in appendix and landscape mode

Post by thibaud74 »

Thanks for your answer. No, it's not important that the chapter title would be aligned or not with the table (pdf document). In fact there is a header with the title. However, the title of this table must be in the table of contents, and they can be splited.

Here is the (imperfect) solution that I've just found: to combine landscape and sidewaysfigure with includegraphics and angle.

Code: Select all

\begin{landscape}

\begin{sidewaysfigure}

\chapter{My table}

\includegraphics[scale=0.9, angle=-90]{myTable.pdf}
\end{sidewaysfigure}
\end{landscape}
However, that remains a little problem: the chapter title is in the opposite direction with respect to the page number. But if I write the chapter instruction before the sidewaysfigure, I get this page break. Any ideas ?
Post Reply