diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-09 00:49:07 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-09 00:49:07 +0000 |
commit | 007f67a693e4d031fd3d792df8e4d5f43e2cb2e7 (patch) | |
tree | 90d17e00e572ecb1e24764b6f29c80e098b08d29 /Master/texmf-dist/doc/latex/eso-pic/eso-ex2.tex | |
parent | 950209b26f70aa87ed07c54f82a95b6f03b7c3a0 (diff) |
doc/latex
git-svn-id: svn://tug.org/texlive/trunk@84 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/eso-pic/eso-ex2.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/eso-pic/eso-ex2.tex | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/eso-pic/eso-ex2.tex b/Master/texmf-dist/doc/latex/eso-pic/eso-ex2.tex new file mode 100644 index 00000000000..eb1966ec604 --- /dev/null +++ b/Master/texmf-dist/doc/latex/eso-pic/eso-ex2.tex @@ -0,0 +1,41 @@ + +% file `eso-ex2.tex'; an example for background pictures +% Rolf Niepraschk, 2002-07-27, niepraschk@ptb.de +\listfiles +\documentclass{article} + +%\usepackage{eso-pic} +\usepackage{eso-pic} +\usepackage{graphicx} +\usepackage[dvips]{geometry} +% Tells `dvips' and `pdfTeX' the papersize. + +% `rose.eps' from CTAN: macros/generic/boxedeps/ +\newcommand\BackgroundPicture{% + \put(0,0){% + \parbox[b][\paperheight]{\paperwidth}{% + \vfill + \centering + \includegraphics[width=\paperwidth,height=\paperheight,% + keepaspectratio]{rose}% + \vfill + }}} +% The picture is centered on the page background + +\AddToShipoutPicture{\BackgroundPicture} + +\begin{document} + +\section{\TeX} + +\newpage + +\ClearShipoutPicture +\section{Empty} + +\newpage + +\AddToShipoutPicture{\BackgroundPicture} +\section{\LaTeX} + +\end{document} |