diff options
author | Karl Berry <karl@freefriends.org> | 2020-10-14 21:43:27 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-10-14 21:43:27 +0000 |
commit | 96017976c095713d2013168eeb9d3c2ad8c1c7dc (patch) | |
tree | 823a3fbc49cdefedda1d05006f3767e904c28973 /Master/texmf-dist/doc/latex/eso-pic/eso-ex2.tex | |
parent | e459b11c06a0dee213069a0129a18e77755ca167 (diff) |
eso-pic (14oct20)
git-svn-id: svn://tug.org/texlive/trunk@56658 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 | 25 |
1 files changed, 12 insertions, 13 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 index 37012a958e1..affe690bd71 100644 --- a/Master/texmf-dist/doc/latex/eso-pic/eso-ex2.tex +++ b/Master/texmf-dist/doc/latex/eso-pic/eso-ex2.tex @@ -1,24 +1,23 @@ % file `eso-ex2.tex'; an example for background pictures -% Rolf Niepraschk, 2015-07-14, Rolf.Niepraschk@gmx.de -\listfiles\setcounter{errorcontextlines}{100} + \documentclass{article} \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 - }}} + \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} @@ -34,7 +33,7 @@ \newpage -\AddToShipoutPicture{\BackgroundPicture} +\AddToShipoutPictureBG{\BackgroundPicture} \section{\LaTeX} \end{document} |