%% - Uses LaTeX
%%
%%    $Id: elements.sty,v 1.6 1999/10/01 07:55:18 doug Exp $
%%
%%    $Log: elements.sty,v $
%%    Revision 1.6  1999/10/01 07:55:18  doug
%%    Added logo an licensing information.
%%
%%    Revision 1.5  1999/09/24 11:31:47  doug
%%    New layout with hyperlinks, etc. built in.
%%
%%    Revision 1.4  1999/09/23 05:19:18  doug
%%    New logo and title page style.
%%
%%    Revision 1.3  1999/08/30 07:43:13  doug
%%    Rework addressing again
%%
%%    Revision 1.2  1999/07/28 03:00:13  doug
%%    Added an \AFS command for use in the titlepage that puts
%%    out the address once.
%%
%%    Revision 1.1  1999/07/07 05:31:43  doug
%%    Initial revision
%%
%%
%%    Elements object model documentation standards.
%%
\def\filedate{1999/06/22}
\def\fileversion{1.4}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{elements}[\filedate\ Elements documentation \fileversion]
\typeout{Package 'elements' \fileversion}
\RequirePackage{graphicx}
\RequirePackage[T1]{fontenc}
\RequirePackage{color}
\RequirePackage[
    colorlinks=true,
    linkcolor=eltlinkcolor,
    urlcolor=elturlcolor,
    citecolor=eltcitecolor,
    ]{hyperref}
\definecolor{eltlinkcolor}{rgb}{0,0,0.7}
\definecolor{elturlcolor}{rgb}{0.2,0.2,0.6}
\definecolor{eltcitecolor}{rgb}{0.6,0.1,0.1}
%
%    The Elements logo. Note that this is a \TeX-like logog
%    and needs spacing after it.
%
\newcommand{\Elements}{\textsf{e\kern0.08eml\kern0.08eme\kern0.08emm\kern0.08eme\kern0.08emn\kern0.08emt\kern0.08ems}}
%
%    The folks who bring you Elements. Redefine this
%    if you're someone else
%
\def\TARMS{%
    TARMS Inc.%
}
\newcommand{\Elementsauthor}{\TARMS}
%
%	The Elements licence agreeement
\newcommand{\Elementslicense}{%
    Copyright \copyright \number\year\ \Elementsauthor\vspace{2ex}
	\par
	{\small
	Permission is hereby granted, free of charge, to any person obtaining 
	a copy of this model and associated documentation files (the ``Model''), 
	to deal in the Model without restriction, including without limitation 
	the rights to use, copy, modify, merge, publish, distribute, sublicense, 
	and/or sell copies of the Model, and to permit persons to whom the 
	Model is furnished to do so, subject to the following conditions: 
	\par
	\begin{enumerate}
	\item
	The origin of this model must not be misrepresented; you must not claim 
	that you wrote the original model. 
	If you use this Model in a product, an acknowledgment in the product 
	documentation would be appreciated but is not required. 
	Similarly notification of this Model's use in a product would be 
	appreciated but is not required. 

	\item
	Altered source versions must be plainly marked as such, and must not 
	be misrepresented as being the original software. 

	\item
	This notice, including the above copyright notice shall be included in 
	all copies or substantial portions of the Model. 
	\end{enumerate}
	\par
	THE MODEL IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
	IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
	FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 
	IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
	DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 
	OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MODEL OR THE USE 
	OR OTHER DEALINGS IN THE MODEL.
	}
}
%
%    When using this style, the title page is constructed
%    as a seperate page with the appropriate logos, copyright,
%    etc. on it.
%    Leave any thanks, etc stuff to the next page.
%
\renewcommand{\maketitle}{%
    \begin{titlepage}
    \sffamily
% Top of page gets elements logo
    \begin{flushleft}
	\includegraphics[width=\textwidth,keepaspectratio=true]{eltslogo.eps}
    \end{flushleft}
% Title
    \vfill
    \vfill
    \begin{center}
    \LARGE\textbf{\@title}\par
    \end{center}
% Author(s)
    \vfill
    \vfill
    \vfill
    \vfill
    \vfill
    \begin{tabular}[t]{c}
        \@author
    \end{tabular}\par
% Date
    \vfill
    \begin{flushright}
    \footnotesize\@date\par
    \end{flushright}
% TARMS Address and etc.
    \vfill
    \begin{flushleft}
    \tiny
    \hfill \rule{\textwidth}{0.2pt} \hfill \
    \textbf{\TARMS} \hfill \href{http://www.tarms.com}{\texttt{http://www.tarms.com}} \\
    \hfill \rule{\textwidth}{0.2pt} \hfill \\
    \end{flushleft}
    \end{titlepage}
    \thispagestyle{empty}
    \vspace*{\fill}
    \begin{minipage}[t]{10cm}
	\begin{flushleft}
	\Elementslicense
	\end{flushleft}
    \end{minipage}
    \vfill
    \begin{minipage}[t]{10cm}
    Typeset in \LaTeX.
    \end{minipage}
    \vfill
    \par
    \@thanks
    \cleardoublepage
    \setcounter{page}{1}
}
%
%    Sone extra hyphenation
%
\hyphenation{
    Rend-ez-vous
    Fin-XML
    Fp-ML
    RDB-MS
    RDB-MSs
    mark-up
}
