summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/eso-pic/eso-ex1.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-09 00:49:07 +0000
committerKarl Berry <karl@freefriends.org>2006-01-09 00:49:07 +0000
commit007f67a693e4d031fd3d792df8e4d5f43e2cb2e7 (patch)
tree90d17e00e572ecb1e24764b6f29c80e098b08d29 /Master/texmf-dist/doc/latex/eso-pic/eso-ex1.tex
parent950209b26f70aa87ed07c54f82a95b6f03b7c3a0 (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-ex1.tex')
-rw-r--r--Master/texmf-dist/doc/latex/eso-pic/eso-ex1.tex39
1 files changed, 39 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/eso-pic/eso-ex1.tex b/Master/texmf-dist/doc/latex/eso-pic/eso-ex1.tex
new file mode 100644
index 00000000000..8c4c78956df
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/eso-pic/eso-ex1.tex
@@ -0,0 +1,39 @@
+
+% file `eso-ex1.tex'; a framed background example
+% Rolf Niepraschk, 2001-07-20, niepraschk@ptb.de
+
+\documentclass[a4paper]{article}
+\usepackage{eso-pic,calc}
+\listfiles
+
+\makeatletter
+\AddToShipoutPicture{%
+ \begingroup
+ \setlength{\@tempdima}{15mm}%
+ \setlength{\@tempdimb}{\paperwidth-2\@tempdima}%
+ \setlength{\@tempdimc}{\paperheight-2\@tempdima}%
+ \thicklines%
+ \put(\LenToUnit{\@tempdima},\LenToUnit{\@tempdima}){%
+ \framebox(\LenToUnit{\@tempdimb},\LenToUnit{\@tempdimc}){}}%
+ \endgroup
+}
+\makeatother
+
+\begin{document}
+
+ \section*{First page}
+
+ This page and all the following have a frame with 15~mm
+ distance from the paper edges.\newpage
+
+ \section*{Second page}
+
+ \AddToShipoutPicture*{\put(100,100){\circle{40}}}
+
+ Only this page has a circle on the lower left side.
+
+ \newpage
+
+ \section*{Last page}
+
+\end{document}