%% 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