summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/eso-pic/eso-ex2.tex
diff options
context:
space:
mode:
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.tex41
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}