%%% File: TeXMPobj.tex
%%% A part of mfpic 0.6 2002/09/12
%%%
%  Testing mfpic objects in plainTeX using Metapost
%
\magnification\magstep1
\input amstex
\documentstyle{amsppt}
\newdimen\paperheight
\newdimen\paperwidth
%%!!!!!!!!!!!!!!!!!!!!!!!!!!!
% adjust these to your liking:
\paperheight 11 truein
\paperwidth 8.5 truein

% Default plainTeX margins
\hsize \paperwidth
\advance\hsize -2 truein
\hoffset 0 truein
%
\vsize\paperheight
\advance\vsize -2.1 truein
\voffset 0 truein
\NoRunningHeads
\headline{\hfil}
\footline{\hfil\tenrm\folio\hfil}
\input mfpic
\usemetapost
\usetruebbox
\usemplabels
\ifx\pdfoutput\UndEfInEd
\else
  \pdfpageheight=\paperheight
  \pdfpagewidth=\paperwidth
\fi

\mfpverbtex
{\immediate\write16{Thank you for trying mfpic!}}

\opengraphsfile{objs}

\mfpdefinecolor{DarkerGreen}{cmyk}{.85,0,.85,.15}
\fillcolor{DarkerGreen}    % a not so bright green
\drawcolor{rgb(0,0,1)}     % blue
\hatchcolor[RGB]{0,255,255}% cyan
\headcolor[cmyk]{0,.5,1,0} % orange
\tlabelcolor[named]{Red}   % dvips name for red (= (1,0,0))

\centerline{\bf Pictures in \TeX\ with MetaPost}

\input MPobjs

\closegraphsfile

\end

