summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/sauterfonts/sbbm.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/sauterfonts/sbbm.sty')
-rw-r--r--macros/latex/contrib/sauterfonts/sbbm.sty32
1 files changed, 32 insertions, 0 deletions
diff --git a/macros/latex/contrib/sauterfonts/sbbm.sty b/macros/latex/contrib/sauterfonts/sbbm.sty
new file mode 100644
index 0000000000..c21e307a9b
--- /dev/null
+++ b/macros/latex/contrib/sauterfonts/sbbm.sty
@@ -0,0 +1,32 @@
+%% Copyleft 1998 Klaus G. Barthelmann
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{sbbm}[1998/11/11 LaTeX package to use the bbm font family]
+
+\newcommand\bbm@family{}
+\newcommand\bbm@shape{}
+
+\DeclareOption{rm}{\renewcommand\bbm@family{bbm}}
+\DeclareOption{sf}{\renewcommand\bbm@family{bbmss}}
+\DeclareOption{tt}{\renewcommand\bbm@family{bbmtt}}
+% Is there really any use for the typewriter font?
+\DeclareOption{up}{\renewcommand\bbm@shape{n}}
+\DeclareOption{sl}{\renewcommand\bbm@shape{sl}}
+
+\ExecuteOptions{rm,up}
+\ProcessOptions
+
+\DeclareSymbolFont{\bbm@family}{U}{\bbm@family}{m}{\bbm@shape}
+\newcommand\bbm@tt{tt}\ifx\bbm@family\bbm@tt\else
+\SetSymbolFont{\bbm@family}{bold}{U}{\bbm@family}{bx}{\bbm@shape}
+\fi
+\DeclareSymbolFontAlphabet\mathbb{\bbm@family}
+
+\DeclareMathSymbol{\Lparen}{\mathopen}{\bbm@family}{`(}
+\DeclareMathSymbol{\Rparen}{\mathclose}{\bbm@family}{`)}
+\DeclareMathSymbol{\Lbrack}{\mathopen}{\bbm@family}{`[}
+\DeclareMathSymbol{\Rbrack}{\mathclose}{\bbm@family}{`]}
+
+\let\bbm@family=\@undefined
+\let\bbm@shape=\@undefined
+\let\bbm@tt=\@undefined
+\endinput