%%
%% This is file `engrec.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% engrec.dtx  (with options: `package')
%% This is a generated file.
%% 
%% Copyright (C) 2004, 2008 by Yvon Henel
%% dit �le TeXnicien de surface� <le.texnicien.de.surface@wanadoo.fr>
%% 
%% This file may be distributed and/or modified under the conditions of
%% the LaTeX Project Public License, either version 1.2 of this license
%% or (at your option) any later version.  The latest version of this
%% license is in:
%% 
%%    http://www.latex-project.org/lppl.txt
%% 
%% and version 1.2 or later is part of all distributions of LaTeX version
%% 1999/12/01 or later.
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\def\PackageName{engrec}
\def\fileversion{v1.1}
\def\filedate{2008/05/07}
\def\fileinfo{fichier engrec.sty par Le TeXnicien de surface}
\ProvidesPackage{engrec}
   [\filedate\space\fileversion\space\fileinfo]
\newif\if@varepsilon
\newif\if@vartheta
\newif\if@varpi
\newif\if@varrho
\newif\if@varsigma
\newif\if@varphi
\newif\if@upomicron
\newif\if@upgreek
\DeclareOption{upright}{\@upomicrontrue}
\DeclareOption{sloped}{\@upomicronfalse}
\DeclareOption{upgreek}{\@upgreektrue}
\DeclareOption{slgreek}{\@upgreekfalse}
\DeclareOption{varepsilon}{\@varepsilontrue}
\DeclareOption{epsilon}{\@varepsilonfalse}
\DeclareOption{vartheta}{\@varthetatrue}
\DeclareOption{theta}{\@varthetafalse}
\DeclareOption{varpi}{\@varpitrue}
\DeclareOption{pi}{\@varpifalse}
\DeclareOption{varrho}{\@varrhotrue}
\DeclareOption{rho}{\@varrhofalse}
\DeclareOption{varsigma}{\@varsigmatrue}
\DeclareOption{sigma}{\@varsigmafalse}
\DeclareOption{varphi}{\@varphitrue}
\DeclareOption{phi}{\@varphifalse}
\ExecuteOptions{varepsilon,theta,pi,rho,sigma,varphi,sloped,slgreek}
\ProcessOptions\relax
\RequirePackage{amstext}
\if@upgreek \RequirePackage{upgreek}\fi
\providecommand{\Alpha}{\text{\rmfamily\upshape A}}
\providecommand{\Beta}{\text{\rmfamily\upshape B}}
\providecommand{\Epsilon}{\text{\rmfamily\upshape E}}
\providecommand{\Zeta}{\text{\rmfamily\upshape Z}}
\providecommand{\Eta}{\text{\rmfamily\upshape H}}
\providecommand{\Iota}{\text{\rmfamily\upshape I}}
\providecommand{\Kappa}{\text{\rmfamily\upshape K}}
\providecommand{\Mu}{\text{\rmfamily\upshape M}}
\providecommand{\Nu}{\text{\rmfamily\upshape N}}
\providecommand{\Omicron}{\text{\rmfamily\upshape O}}
\providecommand{\Rho}{\text{\rmfamily\upshape P}}
\providecommand{\Tau}{\text{\rmfamily\upshape T}}
\providecommand{\Chi}{\text{\rmfamily\upshape X}}
\providecommand{\omicron}{\text{\rmfamily\itshape o}}
\providecommand{\upomicron}{\text{\rmfamily\upshape o}}
\def\engrec#1{\expandafter\@grec\csname c@#1\endcsname}
\if@upgreek
\def\@grec#1{%
  \ifcase#1\or
  \ensuremath{\upalpha}\or
  \ensuremath{\upbeta}\or
  \ensuremath{\upgamma}\or
  \ensuremath{\updelta}\or
  \if@varepsilon \ensuremath{\upvarepsilon}\else \ensuremath{\upepsilon}\fi \or
  \ensuremath{\upzeta}\or
  \ensuremath{\upeta}\or
  \if@vartheta \ensuremath{\upvartheta}\else \ensuremath{\uptheta}\fi \or
  \ensuremath{\upiota}\or
  \ensuremath{\upkappa}\or
  \ensuremath{\uplambda}\or
  \ensuremath{\upmu}\or
  \ensuremath{\upnu}\or
  \ensuremath{\upxi}\or
  \ensuremath{\upomicron}\or
  \if@varpi \ensuremath{\upvarpi}\else \ensuremath{\uppi}\fi \or
  \if@varrho \ensuremath{\upvarrho}\else \ensuremath{\uprho}\fi \or
  \if@varsigma \ensuremath{\upvarsigma}\else \ensuremath{\upsigma}\fi \or
  \ensuremath{\uptau}\or
  \ensuremath{\upupsilon}\or
  \if@varphi \ensuremath{\upvarphi}\else \ensuremath{\upphi}\fi \or
  \ensuremath{\upchi}\or
  \ensuremath{\uppsi}\or
  \ensuremath{\upomega}\else
  \@ctrerr\fi}%
\else
\def\@grec#1{%
  \ifcase#1\or
  \ensuremath{\alpha}\or
  \ensuremath{\beta}\or
  \ensuremath{\gamma}\or
  \ensuremath{\delta}\or
  \if@varepsilon \ensuremath{\varepsilon}\else \ensuremath{\epsilon}\fi \or
  \ensuremath{\zeta}\or
  \ensuremath{\eta}\or
  \if@vartheta \ensuremath{\vartheta}\else \ensuremath{\theta}\fi \or
  \ensuremath{\iota}\or
  \ensuremath{\kappa}\or
  \ensuremath{\lambda}\or
  \ensuremath{\mu}\or
  \ensuremath{\nu}\or
  \ensuremath{\xi}\or
  \if@upomicron \ensuremath{\upomicron}\else \ensuremath{\omicron}\fi\or
  \if@varpi \ensuremath{\varpi}\else \ensuremath{\pi}\fi \or
  \if@varrho \ensuremath{\varrho}\else \ensuremath{\rho}\fi \or
  \if@varsigma \ensuremath{\varsigma}\else \ensuremath{\sigma}\fi \or
  \ensuremath{\tau}\or
  \ensuremath{\upsilon}\or
  \if@varphi \ensuremath{\varphi}\else \ensuremath{\phi}\fi \or
  \ensuremath{\chi}\or
  \ensuremath{\psi}\or
  \ensuremath{\omega}\else
  \@ctrerr\fi}
\fi
\def\EnGrec#1{\expandafter\@Grec\csname c@#1\endcsname}
\def\@Grec#1{%
  \ifcase#1\or
  \ensuremath{\Alpha}\or
  \ensuremath{\Beta}\or
  \ensuremath{\Gamma}\or
  \ensuremath{\Delta}\or
  \ensuremath{\Epsilon}\or
  \ensuremath{\Zeta}\or
  \ensuremath{\Eta}\or
  \ensuremath{\Theta}\or
  \ensuremath{\Iota}\or
  \ensuremath{\Kappa}\or
  \ensuremath{\Lambda}\or
  \ensuremath{\Mu}\or
  \ensuremath{\Nu}\or
  \ensuremath{\Xi}\or
  \ensuremath{\Omicron}\or
  \ensuremath{\Pi}\or
  \ensuremath{\Rho}\or
  \ensuremath{\Sigma}\or
  \ensuremath{\Tau}\or
  \ensuremath{\Upsilon}\or
  \ensuremath{\Phi}\or
  \ensuremath{\Chi}\or
  \ensuremath{\Psi}\or
  \ensuremath{\Omega}\else
  \@ctrerr\fi}
\endinput
%%
%% End of file `engrec.sty'.
