___/ 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,[EMAIL PROTECTED]){%
    \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

Reply via email to