blob: c9a43c24f974f3cd96635766a612bfa42a5d9870 (
plain)
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
|
% file `eso-ex1.tex'; a framed background example
% Rolf Niepraschk, 2020-09-27, Rolf.Niepraschk@gmx.de
\documentclass[a4paper]{article}
\usepackage{eso-pic}
\listfiles
\newdimen\myTempdima
\newdimen\myTempdimb
\newdimen\myTempdimc
\AddToShipoutPicture{%
\setlength{\myTempdima}{15mm}%
\setlength{\myTempdimb}{\dimexpr\paperwidth-2\myTempdima}%
\setlength{\myTempdimc}{\dimexpr\paperheight-2\myTempdima}%
\thicklines%
\put(\LenToUnit{\myTempdima},\LenToUnit{\myTempdima}){%
\framebox(\LenToUnit{\myTempdimb},\LenToUnit{\myTempdimc}){}}%
}
\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}
|