% CHARISSA technical documents style file
% Version 1.00, 24 July 1995, Steven Singer
%
% Definitions
% 	New page style `techhead' (made default)
%	Redefined \maketitle
%	New title options \docref, \subtitle, \shorttitle, \linecount
%
% To use, add charissatech to the list of options in \documentstyle. It
% is expected that this style will be used with the article main style.
% The psfig style file must also be included eg.
%
% \documentstyle[a4,12pt,psfig,charissatech]{article}
%
% Define \docref, \shorttitle, \subtitle, \title, \author and optionally
% \date near the start of your document then do \maketitle. \linecount
% controls the number of rules placed after the header and before the title
% (default 2).
%
% The various parameters appear on the page as follows :
%
% \docref
%
% +-------------------+     +--------+
% |\shorttitle        |     |        |
% |\subtitle          |     |        |
% +-------------------+     |  Logo  |
%                           |        |
% Author: \author           |        |
% Date:   \date             +--------+
%
% ------------------------------------
% ------------------------------------
%
%                \title
%
%
\def\ps@techhead{
	\def\@oddhead{\rm \@docref\hfil\@shorttitle}
	\def\@oddfoot{\hfil\rm\thepage\hfil}
	\if@twoside
		\def\@evenhead{\rm \@shorttitle\hfil \@docref}
	\else
		\def\@evenhead{\rm \@docref\hfil\@shorttitle}
	\fi
	\def\@evenfoot{\hfil\rm\thepage\hfil}
}
\def\docref#1{\gdef\@docref{#1}}
\def\subtitle#1{\gdef\@subtitle{#1}}
\def\shorttitle#1{\gdef\@shorttitle{#1}}
\def\linecount#1{\@linecount = #1}
\def\@docref{\hbox{}}
\def\@subtitle{\hbox{}}
\def\@shorttitle{\hbox{}}
\newcount\tmp@linecount
\newcount\@linecount
\@linecount = 2
\def\@maketitle{
	\setlength{\parskip}{0mm}
	\setlength{\parindent}{0mm}
	\newpage
	\null
	\vskip -\headsep
	\vskip -\baselineskip
	\vskip -\headheight
	\vbox to \headheight {
		\hbox to\textwidth{\normalsize\rm\@docref\hfil}
		\vfil
	}
	\vskip \headsep
	\parbox[t]{10cm}
	{
		\vskip 0mm
		\fbox{
			\parbox[t]{6.5cm}{
				{\large\bf\@shorttitle}
				\vskip 2mm
				\@subtitle
			}
		}
		\vskip 7mm
		\makebox[2.5cm][l]{Author:} \@author
		\vskip 2mm
		\makebox[2.5cm][l]{Date:}   \@date
	}
	\hfill
	\raisebox{-30mm}{\psfig{figure=char-encap.ps,height=30mm}}
	\par\vskip 10mm
	\tmp@linecount = \@linecount
	\@whilenum\tmp@linecount>0\do {
		\mbox{}\hrulefill\mbox{}\vskip 0mm
		\advance\tmp@linecount\m@ne
	}
	\par
	\vskip 5mm
	\centerline{\large\bf\@title}
	\vskip 2mm
}
\pagestyle{techhead}
