% 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