%\filename{testbox.tex}
%\edited{last by stolfi on Sat Mar  7 02:40:33 1987}

\catcode`@=11 \endlinechar=-1

% use with testfmt.fmt

\tracingoutput=1
\hoffset= 0pt
\voffset= 0pt

\font\bigfont=cmti8\relax

\long\def\samplebox#1*#2#{\dosamplebox{#1}{#2}}
\long\def\dosamplebox#1#2#3{
  \hbox to #1{\vrule width 0.5pt\kern-0.5pt
    \vbox to #2{\hsize #1
      \hrule height 0.5pt
      #3
      \hrule height 0.5pt}\kern -0.5pt\vrule width 0.5pt}
  }

\def\hvcentered#1{\centered\vfill #1\par\vfill}

\catcode`@=12 \endlinechar=`\^^M

\bigfont
\samplebox 7truein*10truein{\hvcentered{This is seven by ten inches.}}
\samplebox 4truein*6truein{\hvcentered{And this is four by six.}}
\vfill\bye
