summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/sauterfonts/sbbm.sty
blob: c21e307a9bf22e1eb602ed671d410834c21a835c (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
%% 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