summaryrefslogtreecommitdiff
path: root/macros/generic/cropmark/croptest.tex
blob: 06058b6861db1b36b8f38ed1493680029a373c44 (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
40
41
42
43
44
% An illustration of cropmark.sty by Victor Eijkhout.
% This file belongs to cropmark.sty version 1.0 or later,
% it is both plain TeX and LaTeX compatible.

\def\plainname{plain}
\ifx\fmtname\plainname
    \input cropmark.sty
\else
    \documentstyle[cropmark]{article}
    \begin{document}
\fi

\parindent=0pt
\def\page
{Left\hfill toP
\vfill
Bottom\hfill righT
\eject}

% First illustrate the default settings

\page

% Now stretch a bit (this is necessary for LaTeX)

\ifx\plainname\fmtname
    \advance\croppadtop by 5pt
    \advance\croppadbot by 5pt
    \advance\croppadlr by 2pt
\else
    \addtolength{\croppadtop}{-10pt}
    \addtolength{\croppadbot}{15pt}
    \addtolength{\croppadlr}{15pt}
\fi

\page

\edef\byebye{
\if\fmtname\plainname
    \noexpand\csname bye\noexpand\endcsname
\else
    \noexpand\end{document}
\fi}
\byebye