summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/physics2/phy-bm-um.legacy.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/physics2/phy-bm-um.legacy.sty')
-rw-r--r--Master/texmf-dist/tex/latex/physics2/phy-bm-um.legacy.sty62
1 files changed, 62 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/physics2/phy-bm-um.legacy.sty b/Master/texmf-dist/tex/latex/physics2/phy-bm-um.legacy.sty
new file mode 100644
index 00000000000..36ffe206a67
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/physics2/phy-bm-um.legacy.sty
@@ -0,0 +1,62 @@
+%%
+%% This is file `phy-bm-um.legacy.sty',
+%% the `bm-um.legacy' module of `physics2' package.
+%%
+%% ******************************************************
+%% * This work may be distributed and/or modified under *
+%% * the conditions of the LaTeX Project Public License *
+%% * *
+%% * http://www.latex-project.org/lppl.txt *
+%% * *
+%% * either version 1.3c of this license or any later *
+%% * version. *
+%% ******************************************************
+%%
+%% This work has the LPPL maintenance status `maintained'.
+%%
+%% The Current Maintainer of this work is Zhang Tingxuan.
+%%
+\ProvidesExplFile{phy-bm-um.legacy.sty}{2023/01/25}{}
+ {`bm-um.legacy' module of `physics2.sty'}
+\AtBeginDocument
+ {
+ \cs_if_exist:cF { symbf }
+ {
+ \PackageError { physics2 }
+ {
+ The ~ `bm-um.legacy' ~ module ~ requires ~
+ `unicode-math' ~ package
+ }
+ {
+ Have ~ you ~ used ~ `unicode-math' ~
+ in ~ the ~ preamble?
+ }
+ }
+ }
+\DeclareDocumentCommand \bm { m }
+ {
+ \mode_if_math:TF
+ {
+ \tl_if_head_eq_catcode:nNTF { #1 } A
+ {
+ \symbfit { #1 }
+ }
+ {
+ \symbf { #1 }
+ }
+ }
+ {
+ \PackageError { physics2 }
+ {
+ The ~ \string\bm\space command ~ should ~ be ~
+ used ~ in ~ math ~ mode ~ only. \MessageBreak
+ This ~ is ~ an ~ error ~ from ~ `bm-um.legacy' ~ module
+ }
+ {
+ Check ~ if ~ any ~ `\string\bm' ~ is ~ out ~
+ of ~ math ~ mode.
+ }
+ }
+ }
+\endinput
+%% End of file `phy-bm-um.legacy.sty'.