diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-09 00:49:07 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-09 00:49:07 +0000 |
commit | 007f67a693e4d031fd3d792df8e4d5f43e2cb2e7 (patch) | |
tree | 90d17e00e572ecb1e24764b6f29c80e098b08d29 /Master/texmf-dist/doc/latex/eso-pic/eso-ex5.tex | |
parent | 950209b26f70aa87ed07c54f82a95b6f03b7c3a0 (diff) |
doc/latex
git-svn-id: svn://tug.org/texlive/trunk@84 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/eso-pic/eso-ex5.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/eso-pic/eso-ex5.tex | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/eso-pic/eso-ex5.tex b/Master/texmf-dist/doc/latex/eso-pic/eso-ex5.tex new file mode 100644 index 00000000000..33b31c2a9e5 --- /dev/null +++ b/Master/texmf-dist/doc/latex/eso-pic/eso-ex5.tex @@ -0,0 +1,46 @@ + +% file `eso-ex5.tex'; background grid example +% Rolf Niepraschk, 2002-11-16, niepraschk@ptb.de + +\listfiles +\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,gridunit=mm]{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} |