%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -*- Mode: Latex -*- %%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% aashelly.sty -- Select one of the Shelly-script fonts as the
%% default in a document.  You have three options (the first is the
%% default): (i) `allegro' gives you ``Shelley-AllegroScript'', (ii)
%% `andante' gives you ``Shelley-AndanteScript'', and (iii) `volante'
%% gives you ``Shelley-VolanteScript''.  
%% 
%% Author          : Anders Andersen
%% Created On      : Fri Aug 23 10:00:07 1996
%% Last Modified By: Anders Andersen
%% Last Modified On: Fri Aug 23 10:34:12 1996
%% Status          : Unknown, Use with caution!
%% 
%% Unless other notices are present in any part of this file
%% explicitly claiming copyrights for other people and/or 
%% organizations, the contents of this file is fully copyright 
%% (C) 1995 Norut IT, all rights reserved. 
%% 
%% Permission is granted to make and distribute verbatim copies 
%% of this document provided that the copyright notice and this
%% permission notice are preserved on all copies.
%% 
%% Permission is granted to copy and distribute modified versions
%% of this document under the conditions for verbatim copying, 
%% provided that the entire resulting derived work is distributed 
%% under the terms of a permission notice identical to this one.
%% 
%% If any other present copyright notices interfere with the 
%% copyright claims above, these claims may be partially overruled 
%% by those notices.
%% 
%% Unless other notices are present in any part of this file
%% explicitly claiming copyrights for other people and/or 
%% organizations, the contents of this file is fully copyright 
%% (C) 1995 Norut IT, all rights reserved. 
%% 
%% Permission is granted to make and distribute verbatim copies 
%% of this document provided that the copyright notice and this
%% permission notice are preserved on all copies.
%% 
%% Permission is granted to copy and distribute modified versions
%% of this document under the conditions for verbatim copying, 
%% provided that the entire resulting derived work is distributed 
%% under the terms of a permission notice identical to this one.
%% 
%% If any other present copyright notices interfere with the 
%% copyright claims above, these claims may be partially overruled 
%% by those notices.
%% 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 
%% Before you can use this package you must have installed the fonts
%% it is using.  I found them at
%% 
%% <ftp://ftp.funet.fi/pub/mirrors/ftp-os2.cdrom.com/pub/os2/fonts/>
%% 
%% under the name "shelley.zip", but this is only a mirror of
%% <ftp://ftp-os2.cdrom.com/pub/os2/multimed/fonts/>.  Unpack the
%% fonts in an appropriate directory (texmf/fonts/type1/public/shelly)
%% and do the following:
%% 
%% a) Generate pfa files from the pfb files (replace xxxxxxxx with
%% "shellyal", "shellyan" and "shellyvo"):
%% 
%%    # pfb2pfa xxxxxxxx.pfb xxxxxxxx.pfa
%% 
%% b) Make the raw tfm files (withe the 0 suffix):
%% 
%%    # afm2tfm xxxxxxxx.afm -v xxxxxxxx.vpl -T cork.enc xxxxxxxx0.tfm
%% 
%% c) Make the virtual font:
%% 
%%    # vptovf xxxxxxxx.vpl xxxxxxxx.vf xxxxxxxx.tfm
%% 
%% d) Edit the psfonts.map file (texmf/dvips/psfonts.map).  Insert
%% this line for each font (replace Yyyyyyy with "Allegro", "Andante"
%% and "Volante"):
%% 
%%    xxxxxxxx0 Shelley-YyyyyyyScript " CorkEncoding ReEncodeFont " <cork.enc <shellyan.pfa
%%
%% e) Copy the *.vf and *.tfm files to the appropriate places
%% (texmf/fonts/vf/public/shelly and texmf/fonts/tfm/public/shelly)
%% 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% --------------------------------------%--------------------------------------
% ---------------------------- Identification part ----------------------------
% --------------------------------------%--------------------------------------

\RequirePackage{rcs}
\RCS$Date: 2002/07/09 23:45:45 $
\RCS$RCSfile: aashelly.sty,v $
\RCS$Revision: 1.1 $
\RCS$State: Exp $
\RCS$Author: aa $

\typeout{Package: `aashelly v\RCSRevision\space <\RCSRawDate> (AA)}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{aashelly}[\RCSRawDate]


% --------------------------------------%--------------------------------------
% -------------------------- Declaration of options ---------------------------
% --------------------------------------%--------------------------------------

\DeclareOption{allegro}{\renewcommand{\rmdefault}{shellyal}}
\DeclareOption{andante}{\renewcommand{\rmdefault}{shellyan}}
\DeclareOption{volante}{\renewcommand{\rmdefault}{shellyvo}}


% --------------------------------------%--------------------------------------
% --------------------------- Execution of options ----------------------------
% --------------------------------------%--------------------------------------

\ExecuteOptions{allegro}
\ProcessOptions


% --------------------------------------%--------------------------------------
% --------------------------------- Main code ---------------------------------
% --------------------------------------%--------------------------------------

\DeclareFontFamily{T1}{shellyal}{}
\DeclareFontShape{T1}{shellyal}{m}{n}{<->s*[1.5487] shellyal}{}
\DeclareFontFamily{T1}{shellyan}{}
\DeclareFontShape{T1}{shellyan}{m}{n}{<->s*[1.5487] shellyan}{}
\DeclareFontFamily{T1}{shellyvo}{}
\DeclareFontShape{T1}{shellyvo}{m}{n}{<->s*[1.5487] shellyvo}{}
