summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/business-research/tex/grgmath.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/business-research/tex/grgmath.sty')
-rw-r--r--macros/latex/contrib/business-research/tex/grgmath.sty181
1 files changed, 181 insertions, 0 deletions
diff --git a/macros/latex/contrib/business-research/tex/grgmath.sty b/macros/latex/contrib/business-research/tex/grgmath.sty
new file mode 100644
index 0000000000..3de6e6bfa5
--- /dev/null
+++ b/macros/latex/contrib/business-research/tex/grgmath.sty
@@ -0,0 +1,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}
+