On Mon, 10 Nov 2014 09:48:57 -0500
Richard Heck <[email protected]> wrote:

> On 11/10/2014 03:59 AM, Wolfgang Engelmann wrote:
> > Hello,
> >
> > I can't find the reason for the following:
> > I inserted a cover image (>insert>file>external material>pdf pages).
> > The pdf output gives me in my German version of the book
> > an empty page (page numbered with 1) before the cover image appears.
> > The pdf output of the English version gives me correctly the cover 
> > image as the first page,
> > however, the next page is empty (no page number, as it was in the 
> > German version), before the titlepage appears.
> > What I want is the title page to appear immediately and afterward
> > the title page, so no empty page before or after it.
> > What should I do to find out the difference between the versions
> > and how to avoid the empty page.
> > I am using lyx2.1.2 under kubuntu.
> 
> I would suggest you not try to insert the cover image in LyX. You can 
> add it to the PDF when you are done using pdftk:
> 
>      # pdftk cover.pdf myfile.pdf cat output newfile.pdf
> 
> Much easier.
> 
> Richard

pdftk is one more step of complication. Before that, I'd suggest
shrinking your cover image. The idiomatic reason for pagefeeding is that
the image plus margins is bigger than the paper.

Near the top, start with this ERT:
\frontmatter\thispagestyle{empty}\setcounter{page}{1}

Then this ERT:
\enlargethispage{1.50in}

Then this ERT:
~\\[-1.7in]\leftskip -1.83in\rightskip -1.0in

Then insert your image, which should be a portrait, letter size (or A4
or whatever if European).

Then insert a newpage.

Then this ERT to reset left and right margins:
\leftskip -.5in\rightskip -.5in

The preceding enlarges the page area, demarginizes it so the cover
image starts at the very top left, and then newpages

The preceding should get you close, but you'll need to tweak to get it
just right.

The reason I prefer this to pdftk is that, for PDF eBooks, a script
personalizes each copy, and that script is much simpler if the cover's
in the LyX file instead of bolted on later using Pdftk. Also, if once a
year I need to update the book and once again turn it into a PDF for
printing, I don't need to remember that there's an extra Pdftk step.

By the way, the preceding code came out of this book:

http://www.troubleshooters.com/bookstore/startbusiness.htm

HTH,

SteveT

Steve Litt                *  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance

Reply via email to