%gives ''\newfont myfont=cmr10@14pt''
\newcount\spacing
\newdimen\size
\def\adjs{%adjust spacing
  \baselineskip=\size \multiply\baselineskip by \spacing \divide\baselineskip by 10
}
\def\newfont#1=#2@#3pt{%name, base, size
  \expandafter\font\csname x#1\endcsname=#2 at #3pt
  \expandafter\edef\csname #1\endcsname{\size=#3pt \adjs \csname x#1\endcsname}
}

\newfont mas=cmb10@72pt
\newfont big=cmr10@48pt
\font\big=cmr10 at 48pt
\newfont sml=cmr10@20pt
\spacing=12

\pdfpageheight=8.5in
\pdfpagewidth=11in
\vsize=6.5in
\hsize=9in
\nopagenumbers

\newdimen\sigheight
\def\award#1#2#3#4{
  \vbox to \vsize{
    \sml\leftskip=0pt plus 1fil\rightskip=0pt plus 1fil\parindent=0pt\parfillskip=0pt
    \vfil

    {\big Centennial High School Model United Nations\par}
    \bigskip
    Awards this certificate to:

    {\mas #1\par}
    \bigskip
    \hrule
    \bigskip

    \line{\hfil\vbox{
      \hsize=.5\hsize
      For #2 in #3
    }\hfil}

    \line{
      \vbox to 0pt{
        \hsize=3in
        \hrule\medskip Committee Chair
      \vss}
      \hfil
      \vbox to 0pt{
        \setbox0=\vbox{
          \hsize=3in
          \hrule\medskip Secretary-General\bigskip\bigskip
          \hrule\medskip Director-General
        }
        \global\sigheight=\ht0
        \box0
      \vss}
    }
    \vskip\sigheight
    #4

    MiniMUN \number\year

    November \number\day, \number\year
    \vfil
  }
  \eject
}

\def\room#1{
  \vbox to\vsize{
    \mas\leftskip=0pt plus 1fil\rightskip=0pt plus 1fil\parindent=0pt\parfillskip=0pt
    \vfil
    #1\vfil
    \line{\hfil\pdfximage width 4in{logo.png}\pdfrefximage\pdflastximage\hfil}
    \vfil
  }
}
