LyXHow to go back and add cover at beginning

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
insipidtoast
Posts: 128
Joined: Wed Jul 04, 2012 5:34 pm

How to go back and add cover at beginning

Post by insipidtoast »

Well now that my book is done, I am trying to figure out how to make it into an ebook version. My plan is to open a new lyx file insert the jpg of my cover and have it take up the whole page, and then export&save the resulting one page pdf. Then I will go into my mother file for the book and use the pdfpages function to insert the cover pdf at the beginning. How do I make sure the cover pdf is inserted at the very beginning of my document without messing everything else up?

Also, do you think I should add the back cover at the end?

When I go to insert-graphics... and choose my jpg file of the front cover, then set it at 303pt, it fits OK, but there are obviously margins because it is a 6"x9" book and 303pt is much less than 6"

***Here's the part I figured out:
When I make the dimensions of the graphic much larger in lyx then the pdf just shows the image getting cut off at the edge of the page. It won't center the graphic on the page.

It seems lyx is forcing the graphic to adhere to the top and left margin.

Solution: Go into Document settings - Page margins, and uncheck Default Margins then enter a 0 (zero) value for everything.***

Also, can't seem to get rid of the page number! It either puts i or 1 at the bottom of the page.

Oh...one other aggravating thing that lyx does is generate two pages. The first page is blank and the second page has the image. Is that because LYX won't let me make an odd number of pages?

Please help.
FYI:
I'm using windows with LyX 2.0 and MiKTeX 2.9
I'm designing a book using the Koma-script class

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

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

How to go back and add cover at beginning

Post by Stefan Kottwitz »

You could use the command \includepdf of the pdfpages package or a corresponding LyX feature, this command works with JPG files too and should help with the overfull boxes problem which \includegraphics could have, which could result in moving the image to the next page..

Stefan
LaTeX.org admin
Post Reply