% This style is not suitable for inclusion into other documents, common 
% command definitions have been used which could easily cause problems

% No page number nor headings etc.

\pagestyle{empty}

% Set page size and margins
\topskip 0mm
\topmargin -15truemm
\headsep 0mm
\headheight 0mm
\textheight 280truemm
\textwidth 190truemm
\oddsidemargin -15truemm
\evensidemargin -15truemm
\marginparwidth 0mm
\marginparsep 0mm
%\footheight 0mm
\footskip 0mm
\parskip=5mm
\parindent=0mm

% Define ESRF logo
\def\ESRFlogo{
\setlength{\unitlength}{.2mm}
\begin{picture}(0,0)
\put(0,22){\circle*{9}}
\put(11,18){\circle*{9}}\put(-11,18){\circle*{9}}
\put(20,9){\circle*{9}}\put(-20,9){\circle*{9}}
\put(21,-3){\circle*{9}}\put(-21,-3){\circle*{9}}
\put(16,-14){\circle*{9}}\put(-16,-14){\circle*{9}}
\put(6,-21){\circle*{9}}\put(-6,-21){\circle*{9}}
%
\put(0,34){\circle*{6}}
\put(9,32){\circle*{6}}\put(-9,32){\circle*{6}}
\put(18,28){\circle*{6}}\put(-18,28){\circle*{6}}
\put(18,-28){\circle*{6}}\put(-18,-28){\circle*{6}}
\put(25,22){\circle*{6}}\put(-25,22){\circle*{6}}
\put(25,-22){\circle*{6}}\put(-25,-22){\circle*{6}}
\put(30,14){\circle*{6}}\put(30,-14){\circle*{6}}
\put(-30,14){\circle*{6}}\put(-30,-14){\circle*{6}}
\put(33,4){\circle*{6}}\put(-33,4){\circle*{6}}
\put(32,-6){\circle*{6}}\put(-33,-6){\circle*{6}}
\put(9,-32){\circle*{6}}\put(-9,-32){\circle*{6}}
\put(0,-33){\circle*{6}}
%%% smaller logo needs smaller outer circles not supplied by \circle,
%%% T.Asthalter 1.3.99
\psset{xunit=0.2mm,yunit=0.2mm,runit=0.1mm,fillstyle=solid,fillcolor=black}
\pscircle(0,44){3.5}\pscircle(0,-43){3.5}
\pscircle(12,42){3.5}\pscircle(12,-42){3.5}
\pscircle(23,37){3.5}\pscircle(23,-37){3.5}
\pscircle(33,28){3.5}\pscircle(33,-28){3.5}
\pscircle(40,18){3.5}\pscircle(40,-18){3.5}
\pscircle(43,6){3.5}\pscircle(43,-6){3.5}
\pscircle(-12,-42){3.5}\pscircle(-12,42){3.5}
\pscircle(-23,-37){3.5}\pscircle(-23,37){3.5}
\pscircle(-33,-28){3.5}\pscircle(-33,28){3.5}
\pscircle(-40,-18){3.5}\pscircle(-40,18){3.5}
\pscircle(-43,-6){3.5}\pscircle(-43,6){3.5}
%
\pscircle(0,52){2.5}\pscircle(0,-51){2.5}
\pscircle(14,49){2.5}\pscircle(-14,49){2.5}
\pscircle(28,43){2.5}\pscircle(-28,43){2.5}
\pscircle(39,34){2.5}\pscircle(-39,34){2.5}
\pscircle(47,21){2.5}\pscircle(-47,21){2.5}
\pscircle(51,7){2.5}\pscircle(-51,7){2.5}
\pscircle(51,-7){2.5}\pscircle(-51,-7){2.5}
\pscircle(47,-21){2.5}\pscircle(-47,-21){2.5}
\pscircle(39,-34){2.5}\pscircle(-39,-34){2.5}
\pscircle(28,-43){2.5}\pscircle(-28,-43){2.5}
\pscircle(14,-49){2.5}\pscircle(-14,-49){2.5}
%%% add ``ESRF'' plus lines:
\thicklines
\put(-54,-55.5){\line(1,0){29}}\put(-54,-57){\line(1,0){29}}
\put(25,-55.5){\line(1,0){29}}\put(25,-57){\line(1,0){29}}
\put(-54,-89){\line(1,0){108}}\put(-54,-90){\line(1,0){108}}
\put(0,-72){\makebox(0,0){\LARGE\bf ESRF}}
\end{picture}
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% page 1
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%Scientific background and detailed description
\newcommand{\DetailedDescription}[1]{\def\ProDetailedDescription{#1}}
\newcommand{\ExperimentalMethod}[1]{\def\ProExperimentalMethod{#1}}

% Command to make the front page of the application
\newcommand{\PageOne}
{
% Set standard unit length to mm
\unitlength=1mm

% Enter picture mode
\begin{picture}(190,280)(0,0)

% Create page header
\put(5,274){\large\bf {\Huge\bf E}UROPEAN\hspace{1.5mm}{\Huge\bf
S}YNCHROTRON\hspace{1.5mm}{\Huge\bf R}ADIATION\hspace{1.5mm}{\Huge\bf 
F}ACILITY}
\put(176,272){\ESRFlogo}

%%% now centered, 1.3.99 >ta<
\put(1,260){\parbox{16.8cm}{\centering{\bf ESRF User Office}\\
BP 220, F-38043 GRENOBLE CEDEX, France\\
{\small Delivery address: 6 rue Jules Horowitz, 38043 GRENOBLE, France}\\
{\small Tel: +33\,(0)4\,7688\,2552, 
fax: +33\,(0)4\,7688\,2020; email: useroff@esrf.fr; web: http://www.esrf.fr}
}}

\put(-3,250){\rule{195mm}{0.3mm}}

\put(10,242){\parbox{16.8cm}{\centering%
{\large\textbf{Application for beam time at ESRF -- Experimental Method}}\\
This document should consist of a maximum of two  A4 pages
}}

\put(1,230){\parbox[t]{185mm}{%
\underline{\textbf{Aims of the experiment and scientific background}}

\smallskip{\ProDetailedDescription}

\medskip

\underline{\textbf{Experimental method}}

\smallskip{\ProExperimentalMethod}}}

\put (0,2){\makebox(190,277){ }}
%
% Proposal form version
\put (0,0){\tiny ESRF Proposal Form August 2000}
\end{picture}
\newpage
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Page Two set-up commands
%

%Scientific background and detailed description (continued)
\newcommand{\DescriptionContinued}[1]{\def\ProDescriptionContinued{#1}}

% Results boxes etc.
\newcommand{\ResultsExpected}[1]{\def\ProResultsExpected{#1}}
\newcommand{\References}[1]{\def\ProReferences{#1}}


% Command to make the fourth page of the application
\newcommand{\PageTwo}
{
% Set standard unit length to mm
\unitlength1mm
% Enter picture mode
\begin{picture}(190,280)(0,0)
% Frame and main text
\put (3,265){\parbox[t]{184mm}{%
{\ProDescriptionContinued}

\smallskip\underline{\textbf{Results expected}}

\smallskip{\ProResultsExpected}

\smallskip\underline{\textbf{\rule[-1mm]{0mm}{5mm}References}}

\smallskip{\ProReferences}

}}

% Proposal form version
\put (0,0){\tiny ESRF Proposal Form August 2000}
\end{picture}
}

