-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheso-ex1-p.tex
41 lines (30 loc) · 934 Bytes
/
eso-ex1-p.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
% based on `eso-ex1.tex' in eso-pic
% -- a framed background example by Rolf Niepraschk
\documentclass[a4paper]{article}
\usepackage{eso-pic,calc}
\listfiles
\makeatletter
\newdimen\my@tempdima
\newdimen\my@tempdimb
\newdimen\my@tempdimc
\AddToShipoutPicture{%
\begingroup
\setlength{\my@tempdima}{15mm}%
\setlength{\my@tempdimb}{\paperwidth-2\my@tempdima}%
\setlength{\my@tempdimc}{\paperheight-2\my@tempdima}%
\thicklines%
\put(\LenToUnit{\my@tempdima},\LenToUnit{\my@tempdima}){%
\framebox(\LenToUnit{\my@tempdimb},\LenToUnit{\my@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}