summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/e-french/fenglish.sty
blob: c13c25658789442099ccf164334fd0330e651d5b (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
% After Bernard Gaulle's decease this work is now maintained as
% the e-French project by a group of enthusiast users 
% under LPPL copyright as declared in http://www.efrench.org/
\ProvidesFile{fenglish.sty}%
        [2004/06/23 english interface for the french(le/pro) package]
\def\beginlanguage{%
                   \ifx\selectlanguage\undefined\english%
                   \else\selectlanguage{english}\fi}%
\edef\beginFWdirection{L}%
\ifx\undefined\babel@core@loaded%
 \DeclareOption{english}{\def\beginlanguage{%
                         \ifx\selectlanguage\undefined\english%
                         \else\selectlanguage{english}\fi}%
                         }%
 \ProcessOptions%
\fi%
\expandafter\ifx\csname englishTeXmods\endcsname\relax%
\else \endinput \fi%
\ifx\@ifundefined\undefined%
\long\def\@ifundefined#1#2#3{\expandafter\ifx\csname%
                             #1\endcsname\relax#2\else#3\fi}%
\fi%
\let\ifCLAenglish\iffalse%
\def\@tempa{\global\let\ifCLA\iffalse%
           }%
\ifx\ifCLA\undefined\expandafter\@tempa\fi%

\global\let\ifnonenglishheadings\iffalse%
\gdef\captionsenglish{%
     \ifx\captionsnames\captionsenglish\else
   \def\pagename{page}%
   \def\refname{References}%
   \def\abstractname{Abstract}%
\ifx\bibname\undefined\else%
   \def\bibname{Bibliography}%
\fi%
\ifx\btxselectlanguage\undefined%
   \csname bibsenglish\endcsname%
\fi%
   \def\contentsname{Table of Contents}%
   \def\listfigurename{List of Figures}%
   \def\listtablename{List of Tables}%
\ifx\listalgorithmname\undefined\else%
   \def\ALG@name{algorithm}%
   \def\listalgorithmname{List of \ALG@name s}%
\fi%
   \def\indexname{Index}%
   \def\seename{\emph{see}}%
   \def\seealsoname{\emph{see also}}%
   \def\figurename{Figure}%
   \def\tablename{Table}%
   \def\partname{Part}%
   \def\glossaryname{Glossary}%
   \def\kwname{\textbf{Keywords}: }%
   \def\draftname{DRAFT}%
   \def\prefacename{Preface}%
\ifx\proofname\undefined\else%
   \def\proofname{Proof}%
\fi%
\ifx\opening\undefined\else%
   \def\headtoname{To}%
   \def\ccname{cc}%
   \def\enclname{Encl}%
   \def\PSname{PS:}%
   \def\Objectname{Subject:}%
   \def\YourRefname{Your Ref:}%
   \def\OurRefname{Our Ref:}%
   \def\emailname{email:}%
\fi%
\ifx\slidename\undefined\else%
   \def\slidename{Slide}%
\fi%
\ifx\notesname\undefined\else%
   \def\notesname{Notes}%
\fi%
\ifnonenglishheadings%
\else%
   \def\chaptername{Chapter}%
\fi%
   \def\appendixname{Appendix}%
     \fi%
\let\captionsnames\captionsenglish%
}%
\@ifundefined{englishTeXmods}{%
    \gdef\englishTeXmods{%
         \ifCLA
        \ifCLAenglish%
                         \ifx\captionsnames\captionsenglish%
                          \else\captionsenglish\dateenglish%
                         \fi%
        \fi%
         \else%
                         \ifx\captionsnames\captionsenglish%
                          \else\captionsenglish\dateenglish%
                         \fi%
     \fi%
                         \csname @xtrasenglish\endcsname%
                         \def\languagename{english}%
                         \let\switchtolanguage\endenglish%
                        }%
                          }{}%
\ifx\dateenglish\undefined%
\def\dateenglish{\def\today{\ifcase\day\or 1st\or 2nd\or 3rd\or 4th\or 5th\or
  6th\or 7th\or 8th\or 9th\or 10th\or 11th\or 12th\or 13th\or 14th\or 15th\or
  16th\or 17th\or 18th\or 19th\or 20th\or 21st\or 22nd\or 23rd\or 24th\or 
  25th\or 26th\or 27th\or 28th\or 29th\or 30th\or 31st\fi~\ifcase\month\or
  January\or February\or March\or April\or May\or June\or July\or August\or 
  September\or October\or November\or December\fi\space \number\year}}%
\fi%
\ifx\undefined\babel@core@loaded%
 \edef\extrasenglish{}\def\@xtrasenglish{\extrasenglish}%
\else%
 \let\extrasenglish\englishTeXmods%
\fi%
\@ifundefined{english}{\gdef\english{\relax}}{}%
\@ifundefined{switchtolanguage}{%
                                \gdef\switchtolanguage#1{#1}}{}%
\let\@enstORI\switchtolanguage%
\let\englishORI\english%
\def\endenglish{\let\switchtolanguage\@enstORI%
                \ignorespaces}%
\let\noextrasenglish\endenglish%
\def\english{\switchtolanguage\englishTeXmods\englishORI%
             \ignorespaces}%
\english%
\endinput%