summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/engrec/engrec.sty
blob: e51707d21d0f8a382f5c9d09795ab6578bb38390 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
%%
%% 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'.