Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: Background images

  • To: lyx-users@xxxxxxxxxxxxx
  • Subject: Re: Background images
  • From: Roy Schestowitz <r@xxxxxxxxxxxxxxx>
  • Date: Fri, 24 Mar 2006 11:06:23 +0000
  • Delivery-date: Fri, 24 Mar 2006 11:07:13 +0000
  • Envelope-to: s@schestowitz.com
  • In-reply-to: <1143175978.8836.2.camel@inana>
  • References: <1143175978.8836.2.camel@inana>
  • User-agent: Internet Messaging Program (IMP) H3 (4.0.3)
___/ On Fri 24 Mar 2006 04:52:58 GMT, [ Bruce Muirhead ] wrote : \___

I am interested to know if it is possible to create a document (PDF) in
which there is a background image. That is, the text appears over a
background image which may -or may not- cover the entrire page.

I am thinking about the type of ebook created by such windows programmes
such as exebook and ybookmaker.

If this is possible, how would I go about doing it?

Bruce

Hi,

Add the following to the Preamble:

\usepackage{eso-pic,graphicx}
\newcommand\BackgroundPicture[2]{%
  \setlength{\unitlength}{1pt}% default
  \put(0,\strip@pt\paperheight){%
    \parbox[t][\paperheight]{\paperwidth}{%
      \vfill
      \centering\includegraphics[angle=#2]{#1}
      \vfill
    }}}
\makeatother
\AddToShipoutPicture{\BackgroundPicture{<PICTURE_PATH>}{0}}

Put your image in <PICTURE_PATH> ("replace it with" rather). Encapsulated
PostScript should do. If you want a practical example (LyX file), please
just let me know. I use this for presentation slides in LyX.

Hope it helps,

Roy

--
Roy S. Schestowitz      |    It is no longer uncommon to be uncommon
http://Schestowitz.com  |    SuSE Linux     ¦     PGP-Key: 0x74572E8E
11:00am  up 16 days  3:37,  8 users,  load average: 1.26, 1.33, 1.13
     http://iuron.com - help build a non-profit search engine


[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index