TeX - LaTeX Asked on December 2, 2020
I would like to add a full-page sized image before the title. However, when using the code below an empty page appears after the image and before the title. If I change the document class to article
, the empty page does not occur. How to remove this extra page in book
class?
documentclass{book}
title{Title}
usepackage{pdfpages}
begin{document}
includepdf[fitpaper=true]{example-image}
maketitle
end{document}
That's because the page numbering for book
requires a recto (odd) page for all titles (including those for parts and chapters). article
has no such restrictions since it typically doesn't deal with double-sided printing that has recto and verso pages. The easiest way to circumvent that in your situation is to place the image on "page 0" rather than "page 1" by adding addtocounter{page}{-1}
(or setting it verbatim setcounter{page}{0}
).
documentclass{book}
title{Title}
usepackage{pdfpages}
begin{document}
addtocounter{page}{-1}% To ensure the title is set on an odd page
includepdf[fitpaper=true]{example-image}
maketitle
end{document}
Correct answer by Werner on December 2, 2020
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP