Debian Codegraph @

texmf-dist/tex/latex/eurosym/eurosym.sty

raw
1 % Style to enable the euro currency symbol for LaTeX.
2 % by Henrik Theiling (c) 7/98
3 %
4 % The specifications for the symbol are taken from the German
5 % c't magazine, edition 11/98, p. 211.
6 %
7 % The package provides the macro \euro{} which creates a euro
8 % currency symbol.
9 %
10
11 \ProvidesPackage{eurosym}
12 [1998/08/06 v1.1 European currency symbol ``Euro'']
13
14 \DeclareFontFamily{U}{eurosym}{}
15
16 \DeclareFontShape{U}{eurosym}{m}{n}{ <-> feymr10 }{}
17 % Note than only this very shape is officially allowed. All others
18 % that follow are extensions by the author of this package to make
19 % the package more suitable.
20 \DeclareFontShape{U}{eurosym}{m}{sc}{ <-> ssub*eurosym/m/n }{}
21 % no Small Caps, only normal
22 \DeclareFontShape{U}{eurosym}{m}{sl}{ <-> feymo10 }{}
23 \DeclareFontShape{U}{eurosym}{m}{it}{ <-> ssub*eurosym/m/sl }{}
24 % No italic, only slanted.
25 \DeclareFontShape{U}{eurosym}{m}{ol}{ <-> feyml10 }{}
26
27 \DeclareFontShape{U}{eurosym}{bx}{n}{ <-> feybr10 }{}
28 \DeclareFontShape{U}{eurosym}{bx}{sc}{ <-> ssub*eurosym/bx/n }{}
29 \DeclareFontShape{U}{eurosym}{bx}{sl}{ <-> feybo10 }{}
30 \DeclareFontShape{U}{eurosym}{bx}{it}{ <-> ssub*eurosym/bx/sl }{}
31 \DeclareFontShape{U}{eurosym}{bx}{ol}{ <-> feybl10 }{}
32
33 % The b series is only kept anyway. Perhaps it changes again sometime
34 % and bx then looks different from b:
35 \DeclareFontShape{U}{eurosym}{b}{n}{ <-> ssub*eurosym/bx/n }{}
36 \DeclareFontShape{U}{eurosym}{b}{sl}{ <-> ssub*eurosym/bx/sl }{}
37 \DeclareFontShape{U}{eurosym}{b}{it}{ <-> ssub*eurosym/bx/sl }{}
38 \DeclareFontShape{U}{eurosym}{b}{sc}{ <-> ssub*eurosym/bx/n }{}
39 \DeclareFontShape{U}{eurosym}{b}{ol}{ <-> ssub*eurosym/bx/ol }{}
40
41 \DeclareRobustCommand\officialeuro{{\fontencoding{U}\fontfamily{eurosym}\selectfont{}e}}
42
43 % The following is for hacking fonts that don't have an own Euro symbol yet
44 % Only use this when really necessary.
45 \DeclareRobustCommand\eurobars{{\fontencoding{U}\fontfamily{eurosym}\selectfont{}A}}
46 \DeclareRobustCommand\eurobarsnarrow{{\fontencoding{U}\fontfamily{eurosym}\selectfont{}B}}
47 \DeclareRobustCommand\eurobarswide{{\fontencoding{U}\fontfamily{eurosym}\selectfont{}C}}
48
49 \newbox\@eurobox
50 \DeclareRobustCommand\geneuro{\setbox\@eurobox\hbox\eurobars%
51 \mbox{\copy\@eurobox\hskip-\wd\@eurobox{}\hskip.5pt{}C}}
52 \DeclareRobustCommand\geneuronarrow{\setbox\@eurobox\hbox\eurobarsnarrow%
53 \mbox{\copy\@eurobox\hskip-\wd\@eurobox{}\hskip.5pt{}C}}
54 \DeclareRobustCommand\geneurowide{\setbox\@eurobox\hbox\eurobarswide%
55 \mbox{\copy\@eurobox\hskip-\wd\@eurobox{}\hskip.5pt{}C}}
56
57 \newif\if@EURleft
58
59 \def\EUR#1{\if@EURleft\euro\,\fi#1\if@EURleft\else\,\euro\fi}
60
61 \DeclareOption{left}{\@EURlefttrue}
62 \DeclareOption{right}{\@EURleftfalse}
63 \DeclareOption{official}{\let\euro\officialeuro}
64 \DeclareOption{gen}{\let\euro\geneuro}
65 \DeclareOption{gennarrow}{\let\euro\geneuronarrow}
66 \DeclareOption{genwide}{\let\euro\geneurowide}
67
68 \expandafter\ifx\csname umlauthigh\endcsname\relax
69 \ExecuteOptions{left,official}
70 \else
71 \ExecuteOptions{right,official}
72 \fi
73 \ProcessOptions
74
75 \endinput