| 1 |
|
| 2 |
% file `eso-ex2.tex'; an example for background pictures |
| 3 |
|
| 4 |
\documentclass{article} |
| 5 |
|
| 6 |
\usepackage{eso-pic} |
| 7 |
\usepackage{graphicx} |
| 8 |
|
| 9 |
% `rose.eps' from CTAN: macros/generic/boxedeps/ |
| 10 |
\newcommand\BackgroundPicture{% |
| 11 |
\put(0,0){% |
| 12 |
\parbox[b][\paperheight]{\paperwidth}{% |
| 13 |
\vfill |
| 14 |
\centering |
| 15 |
\includegraphics[width=\paperwidth,height=\paperheight,% |
| 16 |
keepaspectratio]{rose}% |
| 17 |
\vfill |
| 18 |
} |
| 19 |
} |
| 20 |
} |
| 21 |
% The picture is centered on the page background |
| 22 |
|
| 23 |
\AddToShipoutPictureBG{\BackgroundPicture} |
| 24 |
|
| 25 |
\begin{document} |
| 26 |
|
| 27 |
\section{\TeX} |
| 28 |
|
| 29 |
\newpage |
| 30 |
|
| 31 |
\ClearShipoutPicture |
| 32 |
\section{Empty} |
| 33 |
|
| 34 |
\newpage |
| 35 |
|
| 36 |
\AddToShipoutPictureBG{\BackgroundPicture} |
| 37 |
\section{\LaTeX} |
| 38 |
|
| 39 |
\end{document} |