blob: f3fc2b93ec355e427b2b2513124d20e36d845bda (
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
|
%%
%% This is file `gensymb.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% gensymb.dtx (with options: `package')
%%
%% IMPORTANT NOTICE:
%%
%% For the copyright see the source file.
%%
%% Any modified versions of this file must be renamed
%% with new filenames distinct from gensymb.sty.
%%
%% For distribution of the original source see the terms
%% for copying and modification in the file gensymb.dtx.
%%
%% This generated file may be distributed as long as the
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
\ProvidesPackage{gensymb}
[2003/07/02 v1.0 (WaS)]
\newif\ifgns@Upomega
\newif\ifgns@Omega
\newif\ifgns@upmu
\DeclareOption{Upomega}{\gns@Upomegatrue}
\DeclareOption{Omega}{\gns@Omegatrue}
\DeclareOption{upmu}{\gns@upmutrue}
\ProcessOptions\relax
\newcommand\celsius{}
\newcommand\degree{}
\newcommand\ohm{}
\def\gns@usefakedsymbols{%
\renewcommand{\degree}{\ensuremath{^\circ}}
\DeclareRobustCommand{\celsius}{%
\ifmmode^\circ\mathrm{C}\else$^\circ$C\fi}
\PackageInfo{gensymb}{%
Faking symbols for \protect\degree\space and \protect\celsius}
\PackageWarningNoLine{gensymb}{%
Not defining \protect\perthousand}
}
\def\gns@setupmathcomp{%
\expandafter\ifx\csname tcmu\endcsname\relax
\DeclareSymbolFont{gns@font}{TS1}{\familydefault}{m}{n}
\ifx\mv@bold\@undefined\else
\SetSymbolFont{gns@font}{bold}{TS1}{\familydefault}{\bfdefault}{n}
\fi
\DeclareMathSymbol{\tccelsius}{\mathord}{gns@font}{137} % {'211}
\DeclareMathSymbol{\tcdegree}{\mathord}{gns@font}{176} % {'260}
\DeclareMathSymbol{\tcperthousand}{\mathord}{gns@font}{135} % {'207}
\DeclareMathSymbol{\tcmu}{\mathord}{gns@font}{181} % {'265}
\DeclareMathSymbol{\tcohm}{\mathord}{gns@font}{87} % {'127}
\PackageInfo{gensymb}{Math companion symbols declared}
\else
\PackageInfo{gensymb}{Math companion symbols found}
\fi
}
\def\gns@usetcsymbols{%
\DeclareRobustCommand{\degree}{%
\ifmmode\tcdegree\else\textdegree\fi}
\DeclareRobustCommand{\celsius}{%
\ifmmode\tccelsius\else\textcelsius\fi}
\DeclareRobustCommand{\perthousand}{%
\ifmmode\tcperthousand\else\textperthousand\fi}
\PackageInfo{gensymb}{Using text companion symbols for %
\protect\degree, \protect\celsius\space and \protect\perthousand}
}
\def\gns@useUpomega{%
\expandafter\ifx\csname Upomega\endcsname\relax
\PackageError{gensymb}
{You have requested the option Upomega,\MessageBreak
but the command \protect\Upomega\space is undefined}
{Load the upgreek package additionally and try again!}
\fi
\DeclareRobustCommand{\ohm}{\ifmmode\Upomega\else$\Upomega$\fi}
\PackageInfo{gensymb}{Using \protect\Upomega\space for \protect\ohm}
}
\def\gns@useOmega{%
\expandafter\ifx\csname upOmega\endcsname\relax
\DeclareRobustCommand{\ohm}{\ifmmode\Omega\else$\Omega$\fi}
\PackageInfo{gensymb}{Using \protect\Omega\space for \protect\ohm}
\else
\DeclareRobustCommand{\ohm}{\ifmmode\upOmega\else$\upOmega$\fi}
\PackageInfo{gensymb}{Using \protect\upOmega\space for \protect\ohm}
\fi
}
\def\gns@usetextohm{%
\DeclareRobustCommand{\ohm}{\ifmmode\tcohm\else\textohm\fi}
\PackageInfo{gensymb}{Using \protect\textohm\space for \protect\ohm}
}
\def\gns@useupmu{%
\expandafter\ifx\csname upmu\endcsname\relax
\PackageError{gensymb}
{You have requested the option upmu,\MessageBreak
but the command \protect\upmu\space is undefined}
{Load the upgreek package additionally and try again!}
\fi
\DeclareRobustCommand{\micro}{\ifmmode\upmu\else$\upmu$\fi}
\PackageInfo{gensymb}{Using \protect\upmu\space for \protect\micro}
}
\def\gns@usetextmu{%
\DeclareRobustCommand{\micro}{\ifmmode\tcmu\else\textmu\fi}
\PackageInfo{gensymb}{Using \protect\textmu\space for \protect\micro}
}
\def\gns@usenomu{%
\PackageWarningNoLine{gensymb}{%
Not defining \protect\micro}
}
\AtBeginDocument{%
\@ifpackageloaded{textcomp}{\gns@setupmathcomp\gns@usetcsymbols}%
{\gns@usefakedsymbols}
\ifgns@Upomega
\gns@useUpomega
\else
\ifgns@Omega
\gns@useOmega
\else
\@ifpackageloaded{textcomp}%
{\gns@usetextohm}%
{\gns@useOmega}
\fi\fi
\ifgns@upmu
\gns@useupmu
\else
\@ifpackageloaded{textcomp}%
{\gns@usetextmu}%
{\gns@usenomu}
\fi
\let\gns@usefakedsymbols\relax
\let\gns@setupmathcomp\relax
\let\gns@usetcsymbols\relax
\let\gns@useUpomega\relax
\let\gns@useOmega\relax
\let\gns@usetextohm\relax
\let\gns@useupmu\relax
\let\gns@usenomu\relax
\let\gns@usetextmu\relax
}
\endinput
%%
%% End of file `gensymb.sty'.
|