diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/tools/bm.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/tools/bm.sty | 32 |
1 files changed, 24 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/tools/bm.sty b/Master/texmf-dist/tex/latex/tools/bm.sty index 9a37a9c020e..0b2d9e4a14f 100644 --- a/Master/texmf-dist/tex/latex/tools/bm.sty +++ b/Master/texmf-dist/tex/latex/tools/bm.sty @@ -34,13 +34,14 @@ %% The list of all files belonging to the LaTeX `Tools Bundle' is %% given in the file `manifest.txt'. %% -%% Copyright 1996 1997 1998 1999 2002 2003 2004 David Carlisle Frank Mittelbach +%% Copyright 1996 1997 1998 1999 2002 2003 2004 2016 +%% David Carlisle Frank Mittelbach %% %% Development of this package was commissioned by Y&Y Inc. %% http://www.yandy.com \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{bm} - [2014/10/28 v1.1c Bold Symbol Support (DPC/FMi)] + [2016/02/27 v1.2a Bold Symbol Support (DPC/FMi)] \def\bm#1#2{% \let\bm@pmb\install@mathalphabet \let\bm@pmb@\getanddefine@fonts @@ -268,7 +269,7 @@ \let\bm@next\bm@add \else\ifcat\noexpand#1\relax \xdef\meaning@{\meaning#1}% - \expandafter\bm@mchar@test\meaning@""\@nil#1% + \expandafter\bm@mchar@test\meaning@""""\@nil#1% \else\ifcat.\ifcat a#1.\else#1\fi \count@\mathcode`#1\relax \ifnum\count@=\mathcode`\'% @@ -333,6 +334,16 @@ \noexpand\@tempa{\mathchar\the\count@\space}}% \@tempb \fi} +\def\bm@umathchar#1#2#3{% +\@tempcnta#2\relax +\count@\bm@table +\ifx\count@=\m@ne +\else + \advance\@tempcnta\count@ +\fi +\bm@xadd{\Umathchar#1\space + \the\@tempcnta\space\space + #3\space}} \def\bm@pmb#1{% \bm@add{\bm@pmb@{#1}}} \def\bm@pmb@#1{{% @@ -390,18 +401,23 @@ \bm@changefam{000}% \bm@xadd{\radical\the\count@\space}}% \edef\bm@mchar@{\meaning\mathchar} -\def\bm@mchar@test#1"#2"#3\@nil#4{% +\edef\bm@umchar@{\string\U\expandafter\@gobble\meaning\mathchar} +\def\bm@mchar@test#1"#2"#3"#4"#5\@nil#6{% \xdef\meaning@{#1}% \ifx\meaning@\bm@mchar@ \count@"#2\relax \bm@mathchar \else - \ifx\bm@previous\@empty - \ifx\relax#4% - \gdef\bm@first{#4}% + \ifx\meaning@\bm@umchar@ + \bm@umathchar{"#2}{"#3}{"#4}% + \else + \ifx\bm@previous\@empty + \ifx\relax#6% + \gdef\bm@first{#6}% + \fi \fi + \bm@add{#6}% \fi - \bm@add{#4}% \fi} \def\bm@changefam#1{% \@tempcnta\count@ |