Debian Codegraph @

texmf-dist/tex/latex/amsmath/amsbsy.sty

raw
1 %%
2 %% This is file `amsbsy.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% amsbsy.dtx
8 %%
9 %% Copyright (C) 1995, 1999 American Mathematical Society.
10 %% Copyright (C) 2016-2025 LaTeX Project and American Mathematical Society.
11 %%
12 %% This work may be distributed and/or modified under the
13 %% conditions of the LaTeX Project Public License, either version 1.3c
14 %% of this license or (at your option) any later version.
15 %% The latest version of this license is in
16 %% https://www.latex-project.org/lppl.txt
17 %% and version 1.3c or later is part of all distributions of LaTeX
18 %% version 2005/12/01 or later.
19 %%
20 %% This work has the LPPL maintenance status `maintained'.
21 %%
22 %% The Current Maintainer of this work is the LaTeX Project.
23 %%
24 \NeedsTeXFormat{LaTeX2e}% LaTeX 2.09 can't be used (nor non-LaTeX)
25 [1994/12/01]% LaTeX date must December 1994 or later
26 \ProvidesPackage{amsbsy}[1999/11/29 v1.2d Bold Symbols]
27 \RequirePackage{amsgen}
28 \DeclareRobustCommand{\boldsymbol}[1]{%
29 \begingroup
30 \let\@nomath\@gobble \mathversion{bold}%
31 \math@atom{#1}{%
32 \mathchoice%
33 {\hbox{$\m@th\displaystyle#1$}}%
34 {\hbox{$\m@th\textstyle#1$}}%
35 {\hbox{$\m@th\scriptstyle#1$}}%
36 {\hbox{$\m@th\scriptscriptstyle#1$}}}%
37 \endgroup}
38 \def\math@atom#1#2{%
39 \binrel@{#1}\binrel@@{#2}}
40 \DeclareRobustCommand{\pmb}{%
41 \ifmmode\else \expandafter\pmb@@\fi\mathpalette\pmb@}
42 \def\pmb@@#1#2#3{\leavevmode\setboxz@h{#3}%
43 \dimen@-\wdz@
44 \kern-.5\ex@\copy\z@
45 \kern\dimen@\kern.25\ex@\raise.4\ex@\copy\z@
46 \kern\dimen@\kern.25\ex@\box\z@
47 }
48 \newdimen\pmbraise@
49 \def\pmb@#1#2{\setbox8\hbox{$\m@th#1{#2}$}%
50 \setboxz@h{$\m@th#1\mkern.5mu$}\pmbraise@\wdz@
51 \binrel@{#2}%
52 \dimen@-\wd8 %
53 \binrel@@{%
54 \mkern-.8mu\copy8 %
55 \kern\dimen@\mkern.4mu\raise\pmbraise@\copy8 %
56 \kern\dimen@\mkern.4mu\box8 }%
57 }
58 \def\binrel@#1{\begingroup
59 \setboxz@h{\thinmuskip0mu
60 \medmuskip\m@ne mu\thickmuskip\@ne mu
61 \setbox\tw@\hbox{$#1\m@th$}\kern-\wd\tw@
62 ${}#1{}\m@th$}%
63 \edef\@tempa{\endgroup\let\noexpand\binrel@@
64 \ifdim\wdz@<\z@ \mathbin
65 \else\ifdim\wdz@>\z@ \mathrel
66 \else \relax\fi\fi}%
67 \@tempa
68 }
69 \let\binrel@@\relax
70 \endinput
71 %%
72 %% End of file `amsbsy.sty'.