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
42
43
44
45
46
|
% file `eso-ex5.tex'; background grid example
% Rolf Niepraschk, 2015-07-14, Rolf.Niepraschk@gmx.de
\listfiles\setcounter{errorcontextlines}{100}
\documentclass[a4paper,twoside]{article}
% a4paper = 210mm x 297mm = 596bp x 842bp = 8.27in x 11.69in
% letterpaper = 215.9mm x 279.4mm = 612bp x 792bp = 8.5in x 11in
%\usepackage[a3,center]{crop}
\usepackage[dvips]{geometry}
% `dvips', `pdfTeX' and `VTeX' should know the papersize.
\usepackage[colorgrid,gridBG=true,gridunit=mm,texcoord]{eso-pic}
%\usepackage[colorgrid,gridunit=in,subgridcolor=blue,texcoord]{eso-pic}
%\usepackage[grid,gridunit=bp,subgridstyle=dotted]{eso-pic}
\newcommand*\cmd[1]{\texttt{\symbol{`\\}#1}}
\AddToShipoutPicture{%
\thicklines\normalfont\ttfamily\Large%
\color{blue}\setlength\unitlength{1mm}%
\AtTextCenter{\circle*{6}%
\put(-2,0){\makebox(0,0)[lb]{\cmd{AtTextCenter}}}}%
\AtTextUpperLeft{\circle*{6}%
\put(-2,5){\makebox(0,0)[lt]{\cmd{AtTextUpperLeft}}}}%
\AtTextLowerLeft{\circle*{6}%
\put(-2,-5){\makebox(0,0)[lb]{\cmd{AtTextLowerLeft}}}}%
\color{red}%
\AtPageCenter{\circle*{6}%
\put(-2,0){\makebox(0,0)[lt]{\cmd{AtPageCenter}}}}%
\AtPageUpperLeft{\circle*{6}%
\put(-2,-5){\makebox(0,0)[lb]{\cmd{AtPageUpperLeft}}}}%
\AtPageLowerLeft{\circle*{6}%
\put(-2,5){\makebox(0,0)[lt]{\cmd{AtPageLowerLeft}}}}%
}
\setlength\parindent{0pt}
\begin{document} \Huge \bfseries
\hrulefill First Page\hrulefill \vfill X \hfill X \newpage
\hrulefill Second Page\hrulefill \vfill X \hfill X
\end{document}
|