Page LayoutAdding interleaf pages with an image

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
mike1264
Posts: 27
Joined: Wed Jul 24, 2013 6:07 pm

Adding interleaf pages with an image

Post by mike1264 »

Hi,
I want to ensure all chapters start on a right-hand page. I would like to add a picture to the empty interleaf page.
The picture I am using is smaller than the text area into which I am placing it and it is without any head line or pagination. It is a jpg format.
As I understand it, if the last chapter ends with a left-hand page, an interleaf page has to be added to ensure the following chapter starts on a right-hand page, which should be completely empty.

I am using the Koma scrbook in Lyx.

The code works fine until "{picture}" is encountered. I've a copy of the picture in the same directory as the document being used. I have added the name of the image file and its extension in the place of the word, picture. I have also tried adding the exact path to the image file. Nothing seems to work. The file can't be found and, the error tells me a numerical value is needed in {picture}.
I have spent hours on this - there is probably something (simple) I'm not grasping. Anyone have any advice?

My Latex code:

Code: Select all

\cleardoubleevenemptypage
\thispagestyle{empty}
\includegraphics
[width=\textwidth,%
height=\textheight,%
keepaspectratio]%
{picture}
\chapter{Chapter Headline}
Thanks,
Mike
Last edited by Stefan Kottwitz on Sat Aug 03, 2013 2:33 pm, edited 1 time in total.

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

mike1264
Posts: 27
Joined: Wed Jul 24, 2013 6:07 pm

Adding interleaf pages with an image

Post by mike1264 »

OK Progress...

I've got as far as:

Code: Select all

\cleardoubleevenemptypage 
\thispagestyle {empty} 
\includegraphics [width=2in, height=2in, keepaspectratio] {wwlogo} 
\chapter {Chapter Headline}
%\cleardoubleoddemptypage 
%\thispagestyle {empty} 
And it places the image 'wwlogo'. HOWEVER, I can't figure out how to place the image say, in the centre of the blank interleaf page.

Anyone?

Thanks,
Mike
Last edited by cgnieder on Sun Aug 04, 2013 10:38 am, edited 1 time in total.
mike1264
Posts: 27
Joined: Wed Jul 24, 2013 6:07 pm

Adding interleaf pages with an image

Post by mike1264 »

OK Done it!!

The following code places the image 'wwlogo' at the location -105,400,500,200 on the empty page. With patience it is possible to find the exact centre point of the page.

Code: Select all

\cleardoubleevenemptypage 
\thispagestyle {empty} 
\includegraphics [bb = -105 400 500 200, keepaspectratio] {wwlogo}
\chapter {Chapter Headline},
%\cleardoubleoddemptypage 
%\thispagestyle {empty}
Last edited by cgnieder on Sun Aug 04, 2013 10:38 am, edited 1 time in total.
Post Reply