summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/physics2/phy-doubleprod.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/physics2/phy-doubleprod.sty')
-rw-r--r--Master/texmf-dist/tex/latex/physics2/phy-doubleprod.sty40
1 files changed, 40 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/physics2/phy-doubleprod.sty b/Master/texmf-dist/tex/latex/physics2/phy-doubleprod.sty
new file mode 100644
index 00000000000..1888b6e70ae
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/physics2/phy-doubleprod.sty
@@ -0,0 +1,40 @@
+%%
+%% This is file `phy-doubleprod.sty',
+%% the `doubleprod' 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.
+%%
+\ProvidesFile{phy-doubleprod.sty}
+ [2023/01/25 `doubleprod' (double binary) module of `physics2.sty']
+% The options, true or false.
+\phy@define@key{doubleprod}{crosssymbol}{\def\@phy@dbl@c{#1}}
+\phy@define@key{doubleprod}{dotsymbol}{\def\@phy@dbl@d{#1}}
+\phy@define@key{doubleprod}{crossscale}{\def\@phy@dbl@sc{#1}}
+\phy@define@key{doubleprod}{dotscale}{\def\@phy@dbl@sd{#1}}
+\phy@define@key{doubleprod}{crossopenup}{\def\@phy@dbl@oc{#1}}
+\phy@define@key{doubleprod}{dotopenup}{\def\@phy@dbl@od{#1}}
+\phy@setkeys{doubleprod}{crosssymbol=\times,dotsymbol=\ldotp,
+ crossscale=0.8,dotscale=1,crossopenup=.02,dotopenup=.2}
+\phy@processkeyopt{doubleprod}
+\def\phy@dbl@gen#1#2#3#4{%
+ \DeclareRobustCommand#1{\mathbin{\vcenter{\baselineskip\z@skip%
+ \lineskip#4\phy@dblcurrf@size%
+ \setbox\@tempboxa=\hbox{\fontsize{#2\phy@dblcurrf@size}\z@$#3$}%
+ \copy\@tempboxa\box\@tempboxa}}}}
+\def\phy@dblcurrf@size{\dimexpr\f@size pt\relax}
+\phy@dbl@gen\doublecross\@phy@dbl@sc\@phy@dbl@c\@phy@dbl@oc
+\phy@dbl@gen\doubledot\@phy@dbl@sd\@phy@dbl@d\@phy@dbl@od
+\endinput
+%% End of file `phy-doubleprod.sty'.