summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/eso-pic/eso-ex4.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/eso-pic/eso-ex4.tex')
-rw-r--r--Master/texmf-dist/doc/latex/eso-pic/eso-ex4.tex38
1 files changed, 30 insertions, 8 deletions
diff --git a/Master/texmf-dist/doc/latex/eso-pic/eso-ex4.tex b/Master/texmf-dist/doc/latex/eso-pic/eso-ex4.tex
index eb617a7bbd6..46a66c5774c 100644
--- a/Master/texmf-dist/doc/latex/eso-pic/eso-ex4.tex
+++ b/Master/texmf-dist/doc/latex/eso-pic/eso-ex4.tex
@@ -1,32 +1,54 @@
% file `eso-ex4.tex'; a framed text area example
-% Rolf Niepraschk, 2015-07-14, Rolf.Niepraschk@gmx.de
\listfiles\setcounter{errorcontextlines}{100}
\documentclass[a4paper,twoside]{article}
-\usepackage{graphicx,color}
+\usepackage{graphicx,pict2e}
\usepackage{eso-pic}
-\definecolor{lightgray}{gray}{.75}
-\AddToShipoutPicture{%
- \AtTextLowerLeft{%
- \framebox(\LenToUnit{\textwidth},\LenToUnit{\textheight}){}}}
+\AddToShipoutPictureBG{%
+ \AtTextLowerLeft{\framebox(\textwidth,\textheight){}}}
\setlength\parindent{0pt}
\begin{document}
\section*{First page}
+
+ \AddToShipoutPictureBG*{% on the background, only this page
+ \AtTextUpperLeft{%
+ \put(30mm,-25mm){\color{lightgray}\circle*{50}}
+ }
+ }
+ \AddToShipoutPictureFG*{% on the foreground, only this page
+ \AtTextUpperLeft{%
+ \put(60mm,-25mm){\color{lightgray}\circle*{50}}
+ }
+ }
This page and all the following have a frame around the
- text area.
+ text area. \par
+ This page and all the following have a frame around the
+ text area. \par
+ This page and all the following have a frame around the
+ text area. \par
+ This page and all the following have a frame around the
+ text area. \par
+ This page and all the following have a frame around the
+ text area. \par
+ This page and all the following have a frame around the
+ text area. \par
+ This page and all the following have a frame around the
+ text area. \par
+ This page and all the following have a frame around the
+ text area. \par
\vfill
X \hfill X\newpage
\section*{Second page}
- \AddToShipoutPicture*{%
+ \AddToShipoutPictureBG*{%
\AtTextCenter{%
\makebox(0,0)[c]{\resizebox{\textwidth}{!}{%
\rotatebox{45}{\textsf{\textbf{\color{lightgray}DRAFT}}}}}