summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/business-research/tex/grgmath.sty
blob: 3de6e6bfa553e1bfbc8bc65a6416b306bd37ebe2 (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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
% Font support for Georgia as math font

\DeclareSymbolFont{letters}{U}{georgia}{m}{it}
\SetSymbolFont{letters}{normal}{U}{georgia}{m}{it}
\SetSymbolFont{letters}{bold}{U}{georgia}{b}{it}

\DeclareSymbolFont{cmletters}{OML}{cmm}{m}{it}
\SetSymbolFont{cmletters}{normal}{OML}{cmm}{m}{it}
\SetSymbolFont{cmletters}{bold}{OML}{cmm}{b}{it}


% some symbols are not available in georgia
% replace them by computer modern
\DeclareMathSymbol{\jmath}{\mathord}{cmletters}{"7C}
\DeclareMathSymbol{\wp}{\mathord}{cmletters}{"7D}
\DeclareMathSymbol{\flat}{\mathord}{cmletters}{"5B}
\DeclareMathSymbol{\natural}{\mathord}{cmletters}{"5C}
\DeclareMathSymbol{\sharp}{\mathord}{cmletters}{"5D}
\DeclareMathSymbol{\star}{\mathbin}{cmletters}{"3F}
\DeclareMathSymbol{\leftharpoonup}{\mathrel}{cmletters}{"28}
\DeclareMathSymbol{\leftharpoondown}{\mathrel}{cmletters}{"29}
\DeclareMathSymbol{\rightharpoonup}{\mathrel}{cmletters}{"2A}
\DeclareMathSymbol{\rightharpoondown}{\mathrel}{cmletters}{"2B}
\DeclareMathSymbol{\lhook}{\mathrel}{cmletters}{"2C}
   \def\hookrightarrow{\lhook\joinrel\rightarrow}
\DeclareMathSymbol{\rhook}{\mathrel}{cmletters}{"2D}
   \def\hookleftarrow{\leftarrow\joinrel\rhook}
\DeclareMathSymbol{\triangleleft}{\mathbin}{cmletters}{"2F}
\DeclareMathSymbol{\triangleright}{\mathbin}{cmletters}{"2E}
\DeclareMathSymbol{\jmath}{\mathord}{cmletters}{"7C}
\DeclareMathSymbol{\wp}{\mathord}{cmletters}{"7D}
\DeclareMathAccent{\vec}{\mathord}{cmletters}{"7E}

% we want table figures instead of line figures in math mode
\DeclareSymbolFont{numbers}{T1}{gr467Tf}{m}{n}
\SetSymbolFont{numbers}{normal}{T1}{gr467Tf}{m}{n}
\SetSymbolFont{numbers}{bold}{T1}{gr467Tf}{b}{n}

\DeclareMathSymbol{0}{\mathalpha}{numbers}{`0}
\DeclareMathSymbol{1}{\mathalpha}{numbers}{`1}
\DeclareMathSymbol{2}{\mathalpha}{numbers}{`2}
\DeclareMathSymbol{3}{\mathalpha}{numbers}{`3}
\DeclareMathSymbol{4}{\mathalpha}{numbers}{`4}
\DeclareMathSymbol{5}{\mathalpha}{numbers}{`5}
\DeclareMathSymbol{6}{\mathalpha}{numbers}{`6}
\DeclareMathSymbol{7}{\mathalpha}{numbers}{`7}
\DeclareMathSymbol{8}{\mathalpha}{numbers}{`8}
\DeclareMathSymbol{9}{\mathalpha}{numbers}{`9}

% some glyphs of the operators and symbols fontset are available in georgia
% and mapped to character codes > 127 in our user defined encoding

\DeclareSymbolFont{goperators}{U}{georgia}{m}{n}
\SetSymbolFont{goperators}{normal}{U}{georgia}{m}{n}
\SetSymbolFont{goperators}{bold}{U}{georgia}{b}{n}

\DeclareMathSymbol{+}{\mathbin}{goperators}{"E0}
\DeclareMathSymbol{-}{\mathbin}{goperators}{"E1}
\DeclareMathSymbol{*}{\mathbin}{goperators}{"E2}
\DeclareMathSymbol{\times}{\mathbin}{goperators}{"A6}
\DeclareMathSymbol{\pm}{\mathbin}{goperators}{"8A}
\DeclareMathSymbol{\cdot}{\mathbin}{goperators}{"B1}
\DeclareMathSymbol{\circ}{\mathbin}{goperators}{"CA}
\DeclareMathSymbol{\div}{\mathbin}{goperators}{"9D}
\DeclareMathSymbol{\mathellipse}{\mathbin}{goperators}{"9C}
\DeclareMathSymbol{@}{\mathord}{goperators}{"F6}

\DeclareMathSymbol{=}{\mathrel}{goperators}{"E3}
\DeclareMathSymbol{\sim}{\mathrel}{goperators}{"EB}
\DeclareMathSymbol{\approx}{\mathrel}{goperators}{"9A}
\DeclareMathSymbol{\leq}{\mathrel}{goperators}{"8B}
   \let\le=\leq
\DeclareMathSymbol{\geq}{\mathrel}{goperators}{"8C}
   \let\ge=\geq
\let\neq\relax
\DeclareMathSymbol{\neq}{\mathrel}{goperators}{"88}
   \let\ne=\neq
\let\backslash\relax
\DeclareMathSymbol{\backslash}{\mathord}{goperators}{"EC}

\DeclareMathSymbol{\infty}{\mathord}{goperators}{"89}
\DeclareMathSymbol{\degree}{\mathord}{goperators}{"81}
\DeclareMathSymbol{\minute}{\mathord}{goperators}{"C2}
\DeclareMathSymbol{\second}{\mathord}{goperators}{"C3}
\DeclareMathSymbol{\neg}{\mathord}{goperators}{"97}
    \let\lnot=\neg

\DeclareMathDelimiter{(}{\mathopen} {goperators}{"E4}{largesymbols}{"00}
\DeclareMathDelimiter{)}{\mathclose}{goperators}{"E5}{largesymbols}{"01}
\DeclareMathDelimiter{[}{\mathopen} {goperators}{"E6}{largesymbols}{"02}
\DeclareMathDelimiter{]}{\mathclose}{goperators}{"E7}{largesymbols}{"03}
\let\{\relax
\let\}\relax
\DeclareMathDelimiter{\{}{\mathopen} {goperators}{"E8}{largesymbols}{"08}
\DeclareMathDelimiter{\}}{\mathclose}{goperators}{"E9}{largesymbols}{"09}
\DeclareMathDelimiter{\Vert}{\mathord}{goperators}{"6B}{largesymbols}{"EA}

\DeclareMathSymbol{\mathcopyright}{\mathord}{goperators}{"86}
\DeclareTextCommandDefault{\textcopyright}{{\fontencoding{U}\fontfamily{georgia}\selectfont\char"86}}
\DeclareRobustCommand{\copyright}{\ifmmode{\mathcopyright}\else\textcopyright\fi}
\DeclareTextCommandDefault{\texttrademark}{{\fontencoding{U}\fontfamily{georgia}\selectfont\char"87}}
\DeclareMathSymbol{\mathtrademark}{\mathord}{goperators}{"87}
\DeclareRobustCommand{\trademark}{\ifmmode{\mathtrademark}\else\texttrademark\fi}
\DeclareTextCommandDefault{\textregistered}{{\fontencoding{U}\fontfamily{georgia}\selectfont\char"85}}
\DeclareMathSymbol{\mathregistered}{\mathord}{goperators}{"85}
\DeclareRobustCommand{\registered}{\ifmmode{\mathregistered}\else\textregistered\fi}
\DeclareTextCommandDefault{\texteuro}{{\fontencoding{U}\fontfamily{georgia}\selectfont\char"A0}}
\DeclareMathSymbol{\matheuro}{\mathord}{goperators}{"A0}
\DeclareRobustCommand{\euro}{\ifmmode{\matheuro}\else\texteuro\fi}
\DeclareTextCommandDefault{\textperthousand}{{\fontencoding{U}\fontfamily{georgia}\selectfont\char"A3}}
\DeclareMathSymbol{\mathperthousand}{\mathord}{goperators}{"A3}
\DeclareRobustCommand{\perthousand}{\ifmmode{\mathperthousand}\else\textperthousand\fi}
\DeclareMathSymbol{\mathpercent}{\mathord}{goperators}{"F4}
\DeclareTextCommandDefault{\textpercent}{{\fontencoding{U}\fontfamily{georgia}\selectfont\char"F4}}
\DeclareRobustCommand{\%}{\ifmmode{\mathpercent}\else\textpercent\fi}
\DeclareMathSymbol{\mathdollar}{\mathord}{goperators}{"F5}
\DeclareTextCommandDefault{\textdollar}{{\fontencoding{U}\fontfamily{georgia}\selectfont\char"F5}}
\DeclareRobustCommand{\$}{\ifmmode{\mathdollar}\else\textdollar\fi}
\DeclareMathSymbol{\mathnumber}{\mathord}{goperators}{"ED}
\DeclareTextCommandDefault{\textnumber}{{\fontencoding{U}\fontfamily{georgia}\selectfont\char"ED}}
\DeclareRobustCommand{\#}{\ifmmode{\mathnumber}\else\textnumber\fi}
\DeclareMathSymbol{\mathampersand}{\mathord}{goperators}{"EE}
\DeclareTextCommandDefault{\textampersand}{{\fontencoding{U}\fontfamily{georgia}\selectfont\char"EE}}
\DeclareRobustCommand{\&}{\ifmmode{\mathampersand}\else\textampersand\fi}
\DeclareMathSymbol{\mathparagraph}{\mathord}{goperators}{"84}
\DeclareTextCommandDefault{\textparagraph}{{\fontencoding{U}\fontfamily{georgia}\selectfont\char"84}}
\DeclareRobustCommand{\P}{\ifmmode{\mathparagraph}\else\textparagraph\fi}
\DeclareMathSymbol{\mathdagger}{\mathord}{goperators}{"80}
\DeclareTextCommandDefault{\textdagger}{{\fontencoding{U}\fontfamily{georgia}\selectfont\char"80}}
\DeclareRobustCommand{\dagger}{\ifmmode{\mathdagger}\else\textdagger\fi}
\DeclareMathSymbol{\mathddagger}{\mathord}{goperators}{"A1}
\DeclareTextCommandDefault{\textddagger}{{\fontencoding{U}\fontfamily{georgia}\selectfont\char"A1}}
\DeclareRobustCommand{\ddagger}{\ifmmode{\mathddagger}\else\textddagger\fi}
\DeclareMathSymbol{\mathpounds}{\mathord}{goperators}{"F7}
\DeclareTextCommandDefault{\textpounds}{{\fontencoding{U}\fontfamily{georgia}\selectfont\char"F7}}
\DeclareRobustCommand{\pounds}{\ifmmode{\mathpounds}\else\textpounds\fi}
\DeclareMathSymbol{\mathyen}{\mathord}{goperators}{"8D}
\DeclareTextCommandDefault{\textyen}{{\fontencoding{U}\fontfamily{georgia}\selectfont\char"8D}}
\DeclareRobustCommand{\yen}{\ifmmode{\mathyen}\else\textyen\fi}
\DeclareMathSymbol{\mathcent}{\mathord}{goperators}{"82}
\DeclareTextCommandDefault{\textcent}{{\fontencoding{U}\fontfamily{georgia}\selectfont\char"82}}
\DeclareRobustCommand{\cent}{\ifmmode{\mathcent}\else\textcent\fi}
\DeclareMathSymbol{\mathlira}{\mathord}{goperators}{"D2}
\DeclareTextCommandDefault{\textlira}{{\fontencoding{U}\fontfamily{georgia}\selectfont\char"D2}}
\DeclareRobustCommand{\lira}{\ifmmode{\mathlira}\else\textlira\fi}
\DeclareMathSymbol{\mathcurrency}{\mathord}{goperators}{"D3}
\DeclareTextCommandDefault{\textcurrency}{{\fontencoding{U}\fontfamily{georgia}\selectfont\char"D3}}
\DeclareRobustCommand{\currency}{\ifmmode{\mathcurrency}\else\textcurrency\fi}
\DeclareMathSymbol{\mathpesetas}{\mathord}{goperators}{"C0}
\DeclareTextCommandDefault{\textpesetas}{{\fontencoding{U}\fontfamily{georgia}\selectfont\char"C0}}
\DeclareRobustCommand{\pesetas}{\ifmmode{\mathpesetas}\else\textpesetas\fi}
\DeclareMathSymbol{\mathonehalf}{\mathord}{goperators}{"AA}
\DeclareTextCommandDefault{\textonehalf}{{\fontencoding{U}\fontfamily{georgia}\selectfont\char"AA}}
\DeclareRobustCommand{\onehalf}{\ifmmode{\mathonehalf}\else\textonehalf\fi}
\DeclareMathSymbol{\mathonefourth}{\mathord}{goperators}{"AB}
\DeclareTextCommandDefault{\textonefourth}{{\fontencoding{U}\fontfamily{georgia}\selectfont\char"AB}}
\DeclareRobustCommand{\onefourth}{\ifmmode{\mathonefourth}\else\textonefourth\fi}
\DeclareMathSymbol{\maththreefourth}{\mathord}{goperators}{"AC}
\DeclareTextCommandDefault{\textthreefourth}{{\fontencoding{U}\fontfamily{georgia}\selectfont\char"AC}}
\DeclareRobustCommand{\threefourth}{\ifmmode{\maththreefourth}\else\textthreefourth\fi}
\DeclareMathSymbol{\mathoneeighth}{\mathord}{goperators}{"CC}
\DeclareTextCommandDefault{\textoneeighth}{{\fontencoding{U}\fontfamily{georgia}\selectfont\char"CC}}
\DeclareRobustCommand{\oneeighth}{\ifmmode{\mathoneeighth}\else\textoneeighth\fi}
\DeclareMathSymbol{\maththreeeighth}{\mathord}{goperators}{"CD}
\DeclareTextCommandDefault{\textthreeeighth}{{\fontencoding{U}\fontfamily{georgia}\selectfont\char"CD}}
\DeclareRobustCommand{\threeeighth}{\ifmmode{\maththreeeighth}\else\textthreeeighth\fi}
\DeclareMathSymbol{\mathfiveeighth}{\mathord}{goperators}{"CE}
\DeclareTextCommandDefault{\textfiveeighth}{{\fontencoding{U}\fontfamily{georgia}\selectfont\char"CE}}
\DeclareRobustCommand{\fiveeighth}{\ifmmode{\mathfiveeighth}\else\textfiveeighth\fi}
\DeclareMathSymbol{\mathseveneighth}{\mathord}{goperators}{"CF}
\DeclareTextCommandDefault{\textseveneighth}{{\fontencoding{U}\fontfamily{georgia}\selectfont\char"CF}}
\DeclareRobustCommand{\seveneighth}{\ifmmode{\mathseveneighth}\else\textseveneighth\fi}


\DeclareMathSymbol{!}{\mathclose}{goperators}{"F0}
\DeclareMathSymbol{,}{\mathpunct}{goperators}{"3B}
\DeclareMathSymbol{.}{\mathord}{goperators}{"3A}
\DeclareMathSymbol{:}{\mathrel}{goperators}{"F1}
\DeclareMathSymbol{;}{\mathpunct}{goperators}{"F2}
\DeclareMathSymbol{?}{\mathclose}{goperators}{"F3}