/usr/share/doc/texlive-doc/latex/eso-pic/eso-ex1.tex is in texlive-latex-recommended-doc 2013.20140215-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | % file `eso-ex1.tex'; a framed background example
% Rolf Niepraschk, 2005-12-25, Rolf.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}
|