%\iffalse
% nrps.dtx generated using makedtx version 0.9b (c) Nicola Talbot
% Command line args:
%   -src "(.+)\.(cls)=>\1.\2"
%   -src "(.+)\.(tex)=>\1.\2"
%   -doc "manual.tex"
%   -author "Nicola Talbot"
%   -dir "source"
%   nrps
% Created on 2005/11/20 13:36
%\fi
%\iffalse
%<*package>
%% \CharacterTable
%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%%   Digits        \0\1\2\3\4\5\6\7\8\9
%%   Exclamation   \!     Double quote  \"     Hash (number) \#
%%   Dollar        \$     Percent       \%     Ampersand     \&
%%   Acute accent  \'     Left paren    \(     Right paren   \)
%%   Asterisk      \*     Plus          \+     Comma         \,
%%   Minus         \-     Point         \.     Solidus       \/
%%   Colon         \:     Semicolon     \;     Less than     \<
%%   Equals        \=     Greater than  \>     Question mark \?
%%   Commercial at \@     Left bracket  \[     Backslash     \\
%%   Right bracket \]     Circumflex    \^     Underscore    \_
%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
%%   Right brace   \}     Tilde         \~}
%</package>
%\fi
% \iffalse
% Doc-Source file to use with LaTeX2e
% Copyright (C) 2005 Nicola Talbot, all rights reserved.
% \fi
% \iffalse
%<*driver>
\documentclass{ltxdoc}

\usepackage[colorlinks,
            bookmarks,
            bookmarksopen,
            pdfauthor={N.L.C. Talbot},
            pdftitle={nrps.cls: Norwich Research Park Student Ship Form},
            pdfkeywords={LaTeX}]{hyperref}



\newcommand{\stynamefmt}[1]{\textsf{#1}}\newcommand{\env}[1]{\textsf{#1}}
\PageIndex
 %\RecordChanges
 %\OnlyDescription

\CheckSum{560}

\begin{document}
\DocInput{nrps.dtx}
\end{document}
%</driver>
%\fi
%
%\def\filedate{19 November 2005}
%\def\fileversion{1.00}
%\def\filename{nrps.dtx}
%\def\docdate{19 November 2005}
%
% \title{nrps.cls v\fileversion: Norwich Research Park Studentship Form}
% \author{N.L.C. Talbot}
% \date{\docdate}
% \maketitle
% \tableofcontents
% \section{Introduction}
%The \stynamefmt{nrps} class file can be used to create
%a Norwich Research Park Studentship form.
%
%\section{Installation}
%
%This package is distributed with the files \texttt{nrps.dtx}
%and \texttt{nrps.ins}.  To extract the code do:
%\begin{verbatim}
%latex nrps.ins
%\end{verbatim}
%This will create the file \texttt{nrps.cls} and a
%sample file.
%Place \texttt{nrps.cls} somewhere
%where \LaTeX\ will find it (e.g.\ \texttt{texmf/tex/latex/nrps/})  Remember to refresh
%the \TeX\ database (using \texttt{texhash} under Linux, for
%other operating systems check the manual.)
%
%The \stynamefmt{nrps} class file requires the \stynamefmt{flowfram}
%package. This can be downloaded from \url{http://theoval.cmp.uea.ac.uk/~nlct/latex/packages/index.html#flowfram}.
%
%\section{Available Commands}
%
%All text should be entered either as the argument of one of the
%commands described below, or as the contents of one of the
%environments described below. Once all the information has
%been entered, the form can be generated using the command
%\DescribeMacro{\makeform}
%\begin{verbatim}
%\makeform
%\end{verbatim}
%To generate a blank version of the form, just do:
%\begin{verbatim}
%\documentclass{nrps}
%\begin{document}
%\makeform
%\end{document}
%\end{verbatim}
%The form information is entered using the following commands
%and environments:
%
%\begin{description}
%\item
%\DescribeMacro{\title}
%\verb|\title{|\meta{text}\verb/}/\newline
%This sets the title of the research project.
%
%\item
%\DescribeMacro{\collaborator}
%\verb|\collaborator{|\meta{name}\verb?}{?\meta{school/institute}\verb/}{/\meta{ext}\verb'}'\newline
%Each collaborator should be entered with a separate
%\verb|\collaborator| command. Example:
%\begin{verbatim}
%\collaborator{Dr A Person}{CMP}{1234}
%\collaborator{Dr AN Other}{IFR}{5678}
%\end{verbatim}
%
%\item
%\DescribeMacro{\queries}
%\verb|\queries{|\meta{text}\verb/}/\newline
%The name and telephone number of the collaborator to whom
%any internal queries should be addressed.
%
%\item
%\DescribeEnv{projectdescription}
%\verb|\begin{projectdescription}|\newline
%The description of the project, including the student's
%contribution to the research should be entered in the body of
%the \env{projectdescription} environment.
%
%\item
%\DescribeEnv{justify}
%\verb|\begin{justify}|\newline
%Information regarding how the proposed research strengthens
%or extends the research links between the members of the 
%Norwich Research Park should be entered in the body of the
%\env{justify} environment.
%
%\item
%\DescribeEnv{strategy}
%\verb|\begin{strategy}|\newline
%The information detailing how the proposal fits in with the
%research strategy of the school or institute should be entered
%in the body of the \env{strategy} environment.
%
%\item
%\DescribeMacro{\notsubmitted}
%\verb|\notsubmitted|\newline
%\DescribeMacro{\submitted}
%\verb|\submitted{|\meta{text}\verb/}/\newline
%To answer the question ``has the proposal been submitted 
%elsewhere?'' use the command \verb|\notsubmitted| to answer
%``NO'' and use the command \verb|\submitted{|\meta{text}\verb/}/
%to answer ``YES'', where \meta{text} is the required information.
%
%\item
%\DescribeEnv{training}
%\verb|\begin{training}|\newline
%Details regarding the training that the student will receive
%during the programme should be entered in the body of the
%\env{training} environment.
%
%\item
%\DescribeEnv{monitoring}
%\verb|\begin{monitoring}|\newline
%Details regarding how the student's progress will be monitored
%should be entered in the body of the \env{monitoring}
%environment.
%
%\item
%\DescribeMacro{\noresources}
%\verb|\noresources{|\meta{text}\verb/}/\newline
%\DescribeMacro{\resources}
%\verb|\resources|\newline
%To answer the question ``are the resources required for this
%research already in place?'' use the command 
%\verb|\noresources{|\meta{text}\verb/}/ to answer ``NO'' where
%\meta{text} is the required information, and use the command
%\verb|\resources| to answer ``YES''.
%
%\item
%\DescribeEnv{students}
%\verb|\begin{students}|\newline
%The details of the number of postgraduate research students
%currently being supervised by each of the collaborators should
%be entered in the body of the \env{students} environment.
%
%\end{description}
%
%\section{Troubleshooting}
%
%\begin{enumerate}
%\item There are no pages of output
%
%You have omitted the command \verb|\makeform|.
%
%\item I've entered the information, but it hasn't appeared in
%the form.
%
%You've probably put the command \verb|\makeform| in the wrong
%place. Remember that you can't make the complete form until
%all the information has been entered. Make sure that 
%\verb|\makeform| is at the end of the document environment.
%
%\item Text has appeared in the wrong place.
%
%Check you have used the correct command or environment, and
%make sure you don't have any text outside of any of the above
%mentioned commands or environments.
%
%\item I thought I had answered ``YES'', but ``YES'' has been 
%crossed out instead of ``NO''.
%
%First make sure you have used the correct command (e.g.\ 
%\verb/\submitted/ or \verb|\resources|), and make
%sure you haven't then used the ``NO'' command after it
%(e.g.\ \verb/\notsubmitted/ or \verb|\noresources|).
%
%\item I thought I had answered ``NO'', but ``NO'' has been 
%crossed out instead of ``YES''.
%
%Reverse the previous answer.
%\end{enumerate}
%
% \section{Contact Details}
% Dr Nicola Talbot\\
% School of Computing Sciences\\
% University of East Anglia\\
% Norwich.  NR4 7TJ.\\
% United Kingdom.\\
% \url{http://theoval.cmp.uea.ac.uk/~nlct/}
%\StopEventually{\PrintIndex}
%
%
%\section{The Code}
%    \begin{macrocode}
%<*nrps.cls>
%    \end{macrocode}
% Declare the class
%    \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{nrps}[2005/11/18 Norwich Research Park Studentship]
%    \end{macrocode}
% Base it on the article class file with 11pt font and A4 paper
%    \begin{macrocode}
\LoadClass[a4paper,11pt]{article}
%    \end{macrocode}
% Set the margins
%    \begin{macrocode}
\RequirePackage[margin=0.5in,nohead,top=12mm,bottom=29mm]{geometry}
%    \end{macrocode}
% There are no page numbers
%    \begin{macrocode}
\pagestyle{empty}
%    \end{macrocode}
% Need the flowfram package to set up the frames.
%    \begin{macrocode}
\RequirePackage{flowfram}
%    \end{macrocode}
% Set up frames. Since all text will be entered either in
% environments or commands, no flow frames are required, but
% make one big one to keep flowfram package happy.
%    \begin{macrocode}
\onecolumn
%    \end{macrocode}
% Need a length to wor out frame positions relative to top of
% page, left edge and frame dimensions:
%    \begin{macrocode}
\newlength\@nrpsY
\newlength\@nrpsX
\newlength\@nrpsW
\newlength\@nrpsH
%    \end{macrocode}
% First the form's title blurb:
%    \begin{macrocode}
\setlength{\@nrpsY}{\textheight}
\addtolength{\@nrpsY}{-30mm}
\newstaticframe[1]{\textwidth}{30mm}{0pt}{\@nrpsY}[title]
%    \end{macrocode}
% Set the contents of this frame
%    \begin{macrocode}
\begin{staticcontents*}{title}
\sffamily\centering
\begin{tabular}{c}
\large
\textbf{NORWICH RESEARCH PARK STUDENTSHIP : 2006-07}\\[10pt]
PROPOSAL FOR A STUDENTSHIP\\[10pt]
Complete in typescript---size not less than 10 point
\end{tabular}
\end{staticcontents*}
%    \end{macrocode}
% Create frame to contain title of research topic. Since this
% is a dynamic frame, I don't need to worry about a name clash
% with the previous frame.
%    \begin{macrocode}
\addtolength{\@nrpsY}{-26.5mm}
\setlength{\@nrpsW}{\textwidth}
\addtolength{\@nrpsW}{-2\fboxsep}
\setlength{\@nrpsH}{26.5mm}
\addtolength{\@nrpsH}{-2\fboxsep}
\newdynamicframe*[1]{\@nrpsW}{\@nrpsH}{\fboxsep}{\@nrpsY}[title]
%    \end{macrocode}
% Set the contents:
%    \begin{macrocode}
\setdynamiccontents*{title}{\textsf{Title of Research Topic}
\newline
\@title}
%    \end{macrocode}
% Collaborators
%    \begin{macrocode}
\addtolength{\@nrpsY}{-7.2cm}
\setlength{\@nrpsW}{\textwidth}
\addtolength{\@nrpsW}{-2\fboxsep}
\setlength{\@nrpsH}{6.2cm}
\addtolength{\@nrpsH}{-2\fboxsep}
\newdynamicframe*[1]{\@nrpsW}{\@nrpsH}{\fboxsep}{\@nrpsY}[collaborators]
%    \end{macrocode}
% Set the contents:
%    \begin{macrocode}
\newcommand{\@collaborators}{}
\setdynamiccontents*{collaborators}{%
\textsf{Collaborators$^{\star}$
\newline
\begin{tabular}{@{}p{10cm}p{3.5cm}l@{}}
\sffamily Name(s) & \sffamily Institute/School & \sffamily Ext No
\@collaborators
\end{tabular}}}
%    \end{macrocode}
% List macro modified from The \TeX{}book p 378
%    \begin{macrocode}
\toksdef\@nrpsa=0 \toksdef\@nrpsb=2
\long\def\rightappenditem#1\to#2{\@nrpsa={\\#1}%
\@nrpsb=\expandafter{#2}\edef#2{\the\@nrpsb\the\@nrpsa}}
%    \end{macrocode}
% Provide means to add collaborator information:
%    \begin{macrocode}
\newcommand*{\collaborator}[3]{%
\rightappenditem{\textrm{#1} & \textrm{#2} & 
\textrm{#3}}\to\@collaborators}
%    \end{macrocode}
% Internal queries box.
%    \begin{macrocode}
\setlength{\@nrpsH}{2.8cm}
\addtolength{\@nrpsY}{-\@nrpsH}
\addtolength{\@nrpsY}{-1cm}
\addtolength{\@nrpsH}{-2\fboxsep}
\newdynamicframe*[1]{\@nrpsW}{\@nrpsH}{\fboxsep}{\@nrpsY}[queries]
%    \end{macrocode}
% Set the contents.
%    \begin{macrocode}
\newcommand*{\@queries}{}
\setdynamiccontents*{queries}{\textsf{Name and telephone
number of collaborator to whom any internal queries should 
be addressed}\newline
\@queries}
%    \end{macrocode}
% Provide means to add information:
%    \begin{macrocode}
\newcommand*{\queries}[1]{%
\renewcommand*{\@queries}{#1}}
%    \end{macrocode}
% Support box. This doesn't require any user input as it
% has to be signed, so use a static frame.
%    \begin{macrocode}
\setlength{\@nrpsH}{5.8cm}
\addtolength{\@nrpsY}{-\@nrpsH}
\addtolength{\@nrpsY}{-1cm}
\addtolength{\@nrpsH}{-2\fboxsep}
\newstaticframe*[1]{\@nrpsW}{\@nrpsH}{\fboxsep}{\@nrpsY}[support]
%    \end{macrocode}
% Set the contents
%    \begin{macrocode}
\begin{staticcontents*}{support}
\sffamily
I support this application
\vfill
\begin{tabular}{@{}ll@{}}
Signature \makebox[8.3cm]{\dotfill} & 
Date\makebox[3.3cm]{\dotfill}\\[10pt]
Signature \makebox[8.3cm]{\dotfill} & 
Date\makebox[3.3cm]{\dotfill}\\[10pt]
Signature \makebox[8.3cm]{\dotfill} & 
Date\makebox[3.3cm]{\dotfill}\\[10pt]
Signature \makebox[8.3cm]{\dotfill} & 
Date\makebox[3.3cm]{\dotfill}
\end{tabular}
\vfill
Head(s) and Director(s) of collaborating Schools and Institutes
\end{staticcontents*}
%    \end{macrocode}
% Footnote at bottom of first page
%    \begin{macrocode}
\setlength{\@nrpsH}{1cm}
\addtolength{\@nrpsY}{-\@nrpsH}
\addtolength{\@nrpsY}{-1cm}
\newstaticframe[1]{\textwidth}{\@nrpsH}{0pt}{\@nrpsY}[footnote]
%    \end{macrocode}
% Set contents
%    \begin{macrocode}
\begin{staticcontents*}{footnote}
$^{\star}$The collaborators should come from two or more
members of the Norwich Research Park, including at least one of 
the Colney Lane Institutes/NNUHT and at least one UEA school.
\end{staticcontents*}
%    \end{macrocode}
% Project description (page 2). Make this a static box as it
% may contain a large body of text, possibly with verbatim
% or other awkward commands
%    \begin{macrocode}
\setlength{\@nrpsH}{\textheight}
\addtolength{\@nrpsH}{-2\fboxsep}
\newstaticframe*[2]{\@nrpsW}{\@nrpsH}{\fboxsep}{0pt}[description]
%    \end{macrocode}
% Default text
%    \begin{macrocode}
\begin{staticcontents*}{description}
\sffamily Description of the project, including the student's
contribution to the research (\textsl{in no more than 500 words})
\par
\vfill
\par
\vfill
\end{staticcontents*}
%    \end{macrocode}
% Allow user to enter information
%    \begin{macrocode}
\newenvironment{projectdescription}{%
\begin{staticcontents*}{description}
\textsf{Description of the project, including the student's
contribution to the research (\textsl{in no more than 500 words})}
\par
\setlength{\parindent}{15pt}%
}{
\par
\vfill
\par
\vfill
\end{staticcontents*}}
%    \end{macrocode}
% How does the proposed research strengthen or extend research
% links box
%    \begin{macrocode}
\setlength{\@nrpsH}{12.3cm}
\setlength{\@nrpsY}{\textheight}
\addtolength{\@nrpsY}{-\@nrpsH}
\addtolength{\@nrpsH}{-2\fboxsep}
\newstaticframe*[3]{\@nrpsW}{\@nrpsH}{\fboxsep}{\@nrpsY}[justify]
%    \end{macrocode}
% Default text
%    \begin{macrocode}
\begin{staticcontents*}{justify}
\sffamily How does the proposed research strengthen or extend
the research links between the members of the Norwich Research
Park?
\par
\vfill
\par
\vfill
\textsl{Do not exceed the box}
\end{staticcontents*}
%    \end{macrocode}
% Allow user to enter information
%    \begin{macrocode}
\newenvironment{justify}{%
\begin{staticcontents*}{justify}
\textsf{How does the proposed research strengthen or extend
the research links between the members of the Norwich Research
Park?}
\par
\setlength{\parindent}{15pt}%
}{
\par
\vfill
\par
\vfill
\noindent\textsf{\slshape Do not exceed the box}
\end{staticcontents*}}
%    \end{macrocode}
% How does the proposal fit with the research strategy of
% the school or institute box.
%    \begin{macrocode}
\setlength{\@nrpsH}{6.7cm}
\addtolength{\@nrpsY}{-\@nrpsH}
\addtolength{\@nrpsY}{-1cm}
\addtolength{\@nrpsH}{-2\fboxsep}
\newstaticframe*[3]{\@nrpsW}{\@nrpsH}{\fboxsep}{\@nrpsY}[strategy]
%    \end{macrocode}
% Default text
%    \begin{macrocode}
\begin{staticcontents*}{strategy}
\sffamily How does the proposal fit with the research strategy of
the School or Institute?
\par
\vfill
\par
\vfill
\textsl{Do not exceed the box}
\end{staticcontents*}
%    \end{macrocode}
% Allow user to enter information
%    \begin{macrocode}
\newenvironment{strategy}{%
\begin{staticcontents*}{strategy}
\textsf{How does the proposal fit with the research strategy of
the School or Institute?}
\par
}{
\par
\vfill
\par
\vfill
\noindent\textsf{\slshape Do not exceed the box}
\end{staticcontents*}}
%    \end{macrocode}
% Has the proposal been submitted elsewhere box.
%    \begin{macrocode}
\setlength{\@nrpsH}{5.2cm}
\addtolength{\@nrpsY}{-\@nrpsH}
\addtolength{\@nrpsY}{-5mm}
\addtolength{\@nrpsH}{-2\fboxsep}
\newdynamicframe*[3]{\@nrpsW}{\@nrpsH}{\fboxsep}{\@nrpsY}[submitted]
%    \end{macrocode}
% Define command to strike out text. (Won't work with multiline
% text).
%    \begin{macrocode}
\newcommand*{\strikeout}[1]{%
\mbox{{\settoheight{\@nrpsY}{#1}%
\setlength{\@nrpsY}{0.5\@nrpsY}%
\addtolength{\@nrpsY}{-0.5pt}%
\settowidth{\@nrpsX}{#1}\makebox[0pt][l]{\rule[\@nrpsY]{\@nrpsX}{1pt}}%
#1}}}
%    \end{macrocode}
% Set the contents.
%    \begin{macrocode}
\newcommand*{\@submittedyesno}{YES/NO}
\newcommand*{\@submitted}{}
\setdynamiccontents*{submitted}{\textsf{Has this proposal
been submitted elsewhere for funding? \@submittedyesno\quad
If ``YES'' please provide details}\par
\@submitted
\par\vfill
\textsf{\slshape Do not exceed the box}}
%    \end{macrocode}
% Allow user to give details. First case: ``NO''
%    \begin{macrocode}
\newcommand*{\notsubmitted}{%
\renewcommand*{\@submittedyesno}{%
\strikeout{YES}/NO}\renewcommand*{\@submitted}{}}
%    \end{macrocode}
% Next ``YES'' case. This requires additional information.
%    \begin{macrocode}
\newcommand*{\submitted}[1]{%
\renewcommand*{\@submittedyesno}{%
YES/\strikeout{NO}}\renewcommand*{\@submitted}{#1}}
%    \end{macrocode}
% Details of the training the student will receive box
%    \begin{macrocode}
\setlength{\@nrpsH}{5.1cm}
\setlength{\@nrpsY}{\textheight}
\addtolength{\@nrpsY}{-\@nrpsH}
\addtolength{\@nrpsH}{-2\fboxsep}
\newstaticframe*[4]{\@nrpsW}{\@nrpsH}{\fboxsep}{\@nrpsY}[training]
%    \end{macrocode}
% Default text
%    \begin{macrocode}
\begin{staticcontents*}{training}
\sffamily Give details of the training the student will receive
during the programme
\par
\vfill
\par
\vfill
\textsl{Do not exceed the box}
\end{staticcontents*}
%    \end{macrocode}
% Allow user to enter information
%    \begin{macrocode}
\newenvironment{training}{%
\begin{staticcontents*}{training}
\textsf{Give details of the training the student will receive
during the programme}
\par
}{
\par
\vfill
\par
\vfill
\noindent\textsf{\slshape Do not exceed the box}
\end{staticcontents*}}
%    \end{macrocode}
% Monitoring of student's progress
%    \begin{macrocode}
\setlength{\@nrpsH}{4.2cm}
\addtolength{\@nrpsY}{-\@nrpsH}
\addtolength{\@nrpsY}{-5mm}
\addtolength{\@nrpsH}{-2\fboxsep}
\newstaticframe*[4]{\@nrpsW}{\@nrpsH}{\fboxsep}{\@nrpsY}[monitoring]
%    \end{macrocode}
% Default text
%    \begin{macrocode}
\begin{staticcontents*}{monitoring}
\sffamily How will the student's progress be monitored?
\par
\vfill
\par
\vfill
\end{staticcontents*}
%    \end{macrocode}
% Allow user to enter information
%    \begin{macrocode}
\newenvironment{monitoring}{%
\begin{staticcontents*}{monitoring}
\textsf{How will the student's progress be monitored?}
\par
}{
\par
\vfill
\par
\vfill
\end{staticcontents*}}
%    \end{macrocode}
%Are the resources required for this research already in place?
%    \begin{macrocode}
\setlength{\@nrpsH}{4.6cm}
\addtolength{\@nrpsY}{-\@nrpsH}
\addtolength{\@nrpsY}{-5mm}
\addtolength{\@nrpsH}{-2\fboxsep}
\newdynamicframe*[4]{\@nrpsW}{\@nrpsH}{\fboxsep}{\@nrpsY}[resources]
%    \end{macrocode}
% Set the contents.
%    \begin{macrocode}
\newcommand*{\@resourcesyesno}{YES/NO}
\newcommand*{\@resources}{}
\setdynamiccontents*{resources}{\textsf{Are the resources
required for this research e.g.\ equipment and specialised
library provision already in place? 
\newline\mbox{}\qquad\@resourcesyesno\quad
If ``NO'', please state how these resources will be provided.}\par
\@resources
\par\vfill
\textsf{\slshape Do not exceed the box}}
%    \end{macrocode}
% Allow user to give details. First case: ``NO''
%    \begin{macrocode}
\newcommand*{\noresources}[1]{%
\renewcommand*{\@resourcesyesno}{%
\strikeout{YES}/NO}\renewcommand*{\@resources}{#1}}
%    \end{macrocode}
% Next ``YES'' case. This requires additional information.
%    \begin{macrocode}
\newcommand*{\resources}{%
\renewcommand*{\@resourcesyesno}{%
YES/\strikeout{NO}}\renewcommand*{\@resources}{}}
%    \end{macrocode}
% Details about collaborators PG students
%    \begin{macrocode}
\setlength{\@nrpsH}{6.1cm}
\addtolength{\@nrpsY}{-\@nrpsH}
\addtolength{\@nrpsY}{-5mm}
\addtolength{\@nrpsH}{-2\fboxsep}
\newstaticframe*[4]{\@nrpsW}{\@nrpsH}{\fboxsep}{\@nrpsY}[students]
%    \end{macrocode}
% Default text
%    \begin{macrocode}
\begin{staticcontents*}{students}
\sffamily Please provide details of the number of postgraduate
research students currently being supervised by each of the
collaborators.
\par
\vfill
\par
\vfill
\end{staticcontents*}
%    \end{macrocode}
% Allow user to enter information
%    \begin{macrocode}
\newenvironment{students}{%
\begin{staticcontents*}{students}
\textsf{Please provide details of the number of postgraduate
research students currently being supervised by each of the
collaborators.}
\par
}{
\par
\vfill
\par
\vfill
\end{staticcontents*}}
%    \end{macrocode}
% End blurb
%    \begin{macrocode}
\setlength{\@nrpsH}{4.5cm}
\addtolength{\@nrpsY}{-\@nrpsH}
\addtolength{\@nrpsY}{-5mm}
\newstaticframe[4]{\textwidth}{\@nrpsH}{0pt}{\@nrpsY}[endblurb]
%    \end{macrocode}
% Default text
%    \begin{macrocode}
\begin{staticcontents*}{endblurb}
\sffamily\vfill
\begin{center}
\itshape Please return the completed form to the Science
Faculty Office, c/o MTH, UEA\par
by\par
\textbf{Friday, 2 December 2005}
\end{center}
\vfill
\footnotesize
MMcG/SG/NRPstudentship/2006-07
\end{staticcontents*}
%    \end{macrocode}
% Define command to generate form. This should be used after
% all information has been entered.
%    \begin{macrocode}
\newcommand*{\makeform}{\mbox{}\newpage\mbox{}\newpage
\mbox{}\newpage\mbox{}\newpage}
%    \end{macrocode}
%    \begin{macrocode}
%</nrps.cls>
%    \end{macrocode}
%    \begin{macrocode}
%<*sample.tex>
%    \end{macrocode}
%    \begin{macrocode}
\documentclass{nrps}

\begin{document}
% Title of research topic
\title{A very interesting topic}

% Collaborators
\collaborator{Dr A Person}{CMP}{5678}
\collaborator{Dr AN Other}{IFR}{1234}

% Name and Telephone number of collaborator to whom
% any internal queries should be addressed
\queries{Dr A Person 5678.}

% Description of the project, including the student's
% contribution to the research

\begin{projectdescription}
Blah blah.

Blah blah blah.
\end{projectdescription}

% How does the proposed research strengthen or extend
% the research links between the members of the Norwich 
% Research Park?
\begin{justify}
Justification blah blah.
\end{justify}

% How does the proposal fit with the research strategy of
% the school or institute?
\begin{strategy}
It fits in very nicely.
\end{strategy}

% Has the proposal been submitted elsewhere?
%\notsubmitted % NO
\submitted{It was submitted to the intergalatic
federation of Nog last year.} % YES

% Details of the training the student will receive during
% the programme

\begin{training}
The student will be trained in intergalatic space
exploration.
\end{training}

% How will the student's progress be monitored?

\begin{monitoring}
Telepathically.
\end{monitoring}

% Are the resources required for this research already in
% place?
\noresources{By wishful thinking} % NO
%\resources % YES

% details of the number of postgraduate research students 
% currently being supervised by each of the collaborators

\begin{students}
Too many!
\end{students}

\makeform
\end{document}
%    \end{macrocode}
%    \begin{macrocode}
%</sample.tex>
%    \end{macrocode}
%\Finale
\endinput
