diff options
author | Karl Berry <karl@freefriends.org> | 2023-04-02 20:31:09 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-04-02 20:31:09 +0000 |
commit | befed19f1211eb1d625e1507ca7de72cec7d8814 (patch) | |
tree | b1a4b8857fca3a7cc59e16f08a39148a32edbd2e /Master/texmf-dist | |
parent | 76a457f00d9d638046b737483ff0544308d92adf (diff) |
physics2 (2apr23)
git-svn-id: svn://tug.org/texlive/trunk@66742 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r-- | Master/texmf-dist/doc/latex/physics2/phy2docdef.tex | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/physics2/physics2-legacy.pdf | bin | 82826 -> 82817 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/physics2/physics2.pdf | bin | 87997 -> 87994 bytes | |||
-rw-r--r-- | Master/texmf-dist/tex/latex/physics2/phy-ab.braket.sty | 10 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/physics2/phy-ab.sty | 26 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/physics2/physics2.sty | 2 |
6 files changed, 21 insertions, 19 deletions
diff --git a/Master/texmf-dist/doc/latex/physics2/phy2docdef.tex b/Master/texmf-dist/doc/latex/physics2/phy2docdef.tex index f6d5c5da9f6..53fb2f9deab 100644 --- a/Master/texmf-dist/doc/latex/physics2/phy2docdef.tex +++ b/Master/texmf-dist/doc/latex/physics2/phy2docdef.tex @@ -64,7 +64,7 @@ \newenvironment{example} {\stepcounter{example}\example@start}{\example@end} \author{Zhang Tingxuan} -\date{2023/03/30\quad Version 0.2.0\thanks{% +\date{2023/04/02\quad Version 0.2.1\thanks{% \url{https://www.github.com/AlphaZTX/physics2}}} \makeatother \endinput
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/physics2/physics2-legacy.pdf b/Master/texmf-dist/doc/latex/physics2/physics2-legacy.pdf Binary files differindex 682d20a08b7..cee629a6761 100644 --- a/Master/texmf-dist/doc/latex/physics2/physics2-legacy.pdf +++ b/Master/texmf-dist/doc/latex/physics2/physics2-legacy.pdf diff --git a/Master/texmf-dist/doc/latex/physics2/physics2.pdf b/Master/texmf-dist/doc/latex/physics2/physics2.pdf Binary files differindex 47645e84d84..5a56e39b673 100644 --- a/Master/texmf-dist/doc/latex/physics2/physics2.pdf +++ b/Master/texmf-dist/doc/latex/physics2/physics2.pdf diff --git a/Master/texmf-dist/tex/latex/physics2/phy-ab.braket.sty b/Master/texmf-dist/tex/latex/physics2/phy-ab.braket.sty index 818d8a75e83..e8e7bb30b79 100644 --- a/Master/texmf-dist/tex/latex/physics2/phy-ab.braket.sty +++ b/Master/texmf-dist/tex/latex/physics2/phy-ab.braket.sty @@ -17,7 +17,7 @@ %% The Current Maintainer of this work is Zhang Tingxuan. %% \ProvidesFile{phy-ab.braket.sty} - [2023/01/25 `ab.braket' module of `physics2.sty'] + [2023/04/02 `ab.braket' module of `physics2.sty'] % This module requires \phy@abopen and \phy@abclose from `ab'. \phy@requiremodule{ab} \ifdefined\phy@bra@@ @@ -25,13 +25,13 @@ modules together.\MessageBreak Only `ab.braket' module works now.} \fi % \bra<foo| -\phy@AB@gen{br.m}<{mr<|}{\mathopen#1\langle#2\mathclose#1\vert} +\phy@AB@gen{br.m}<{mr<|}{\mathopen#1\langle#2\mathclose#1\vert\endgroup} \phy@AB@gen{br.a}<{r<|}{\phy@abopen\langle#1\phy@abclose\vert} \phy@d@l@genxm{br.m} \phy@d@l@genxa{br.a} \DeclareRobustCommand\bra{\phy@d@lx{br.m}{br.a}} % \ket|foo> -\phy@AB@gen{kt.m}|{mr|>}{\mathopen#1\vert#2\mathclose#1\rangle} +\phy@AB@gen{kt.m}|{mr|>}{\mathopen#1\vert#2\mathclose#1\rangle\endgroup} \phy@AB@gen{kt.a}|{r|>}{\phy@abopen\vert#1\phy@abclose\rangle} \phy@d@l@genxm{kt.m} \phy@d@l@genxa{kt.a} @@ -49,7 +49,7 @@ \phy@abopen\langle\bgroup#1\egroup\phy@abclose\rangle\endgroup} \endgroup \def\phy@abb@bkv{\middle\vert} -\phy@AB@gen{bk.m}<{mr<>}{\phy@@mb@bk#1{#2}} +\phy@AB@gen{bk.m}<{mr<>}{\phy@@mb@bk#1{#2}\endgroup} \phy@AB@gen{bk.a}<{r<>}{\phy@@ab@bk{#1}} \phy@d@l@genxm{bk.m} \phy@d@l@genxa{bk.a} @@ -75,7 +75,7 @@ \fi} \def\phy@abb@l{\mathchar"313C } \def\phy@abb@r{\mathchar"313E } -\phy@AB@gen{kb.m}|{mr||}{\phy@@mb@kb#1{#2}} +\phy@AB@gen{kb.m}|{mr||}{\phy@@mb@kb#1{#2}\endgroup} \phy@AB@gen{kb.a}|{r||}{\phy@@ab@kb#1\phy@@end} \phy@d@l@genxm{kb.m} \phy@d@l@genxa{kb.a} diff --git a/Master/texmf-dist/tex/latex/physics2/phy-ab.sty b/Master/texmf-dist/tex/latex/physics2/phy-ab.sty index 4436a65214d..9845903a82e 100644 --- a/Master/texmf-dist/tex/latex/physics2/phy-ab.sty +++ b/Master/texmf-dist/tex/latex/physics2/phy-ab.sty @@ -17,7 +17,7 @@ %% The Current Maintainer of this work is Zhang Tingxuan. %% \ProvidesFile{phy-ab.sty} - [2023/02/07 `ab' (autobraces) module of `physics2.sty'] + [2023/04/02 `ab' (autobraces) module of `physics2.sty'] % \phy@requiremodule{common} % The `tightbraces' bool option, true or false. \phy@define@key{ab}{tightbraces}[true]{\def\@phy@abtight{#1}} @@ -47,16 +47,17 @@ \phy@AB@gen{ab}\Vert{r\Vert\Vert}{\phy@abopen\Vert#1\phy@abclose\Vert} \phy@AB@gen{ab}\langle{r\langle\rangle}{\phy@abopen\langle#1\phy@abclose\rangle} % #1 (m): \biggg; #2 (r<token1><token2>): inner content. -\phy@AB@gen{mb}({mr()}{\mathopen#1(#2\mathclose#1)} -\phy@AB@gen{mb}[{mr[]}{\mathopen#1[#2\mathclose#1]} -\phy@AB@gen{mb}\{{mr\{\}}{\mathopen#1\lbrace#2\mathclose#1\rbrace} -\phy@AB@gen{mb}|{mr||}{\mathopen#1\vert#2\mathclose#1\vert} -\phy@AB@gen{mb}\|{mr\|\|}{\mathopen#1\Vert#2\mathclose#1\Vert} -\phy@AB@gen{mb}<{mr<>}{\mathopen#1\langle#2\mathclose#1\rangle} -\phy@AB@gen{mb}\lbrace{mr\lbrace\rbrace}{\mathopen#1\lbrace#2\mathclose#1\rbrace} -\phy@AB@gen{mb}\vert{mr\vert\vert}{\mathopen#1\vert#2\mathclose#1\vert} -\phy@AB@gen{mb}\Vert{mr\Vert\Vert}{\mathopen#1\Vert#2\mathclose#1\Vert} -\phy@AB@gen{mb}\langle{mr\langle\rangle}{\mathopen#1\langle#2\mathclose#1\rangle} +% \endgroup's in the end of definition are corresponding to \begingroup in \phy@d@l@genxm. +\phy@AB@gen{mb}({mr()}{\mathopen#1(#2\mathclose#1)\endgroup} +\phy@AB@gen{mb}[{mr[]}{\mathopen#1[#2\mathclose#1]\endgroup} +\phy@AB@gen{mb}\{{mr\{\}}{\mathopen#1\lbrace#2\mathclose#1\rbrace\endgroup} +\phy@AB@gen{mb}|{mr||}{\mathopen#1\vert#2\mathclose#1\vert\endgroup} +\phy@AB@gen{mb}\|{mr\|\|}{\mathopen#1\Vert#2\mathclose#1\Vert\endgroup} +\phy@AB@gen{mb}<{mr<>}{\mathopen#1\langle#2\mathclose#1\rangle\endgroup} +\phy@AB@gen{mb}\lbrace{mr\lbrace\rbrace}{\mathopen#1\lbrace#2\mathclose#1\rbrace\endgroup} +\phy@AB@gen{mb}\vert{mr\vert\vert}{\mathopen#1\vert#2\mathclose#1\vert\endgroup} +\phy@AB@gen{mb}\Vert{mr\Vert\Vert}{\mathopen#1\Vert#2\mathclose#1\Vert\endgroup} +\phy@AB@gen{mb}\langle{mr\langle\rangle}{\mathopen#1\langle#2\mathclose#1\rangle\endgroup} % \phy@del, the automatic braces. #1: opensymbol; #2: close symbol; #3 \def\phy@del#1#2#3{\phy@abopen#1#3\phy@abclose#2} \expandafter\def\csname phy@del\string*\endcsname#1#2#3{\mathopen#1#3\mathclose#2} @@ -70,7 +71,7 @@ % #1: `mb', according to \phy@AB@gen; #2: `ab'; #3: star or big or left delimiter. \def\phy@d@lx#1#2#3{% \ifcsname phy@del\string#3\endcsname% - \def\reserved@a{#1}% #3 is star or biggg, then get the next argument. + \def\reserved@a{#1}% #3 is star or \biggg, then get the next argument. \else% \def\reserved@a{#2}% #3 is delimiter, the braces are automatic. \fi% @@ -78,6 +79,7 @@ % The first two arguments of \phy@d@lx need to be generated by the following two commands. \def\phy@d@l@genxm#1{% generate arguments like `mb' \expandafter\def\csname phy@d@lx#1\endcsname##1##2{% + \begingroup% \endgroup in \phy@AB@gen{mb}<open><arg><definition> \ifx##1*\let\phy@tempa=\relax\else\let\phy@tempa=##1\fi \csname phy@#1@\string##2\endcsname\phy@tempa##2}} \def\phy@d@l@genxa#1{% generate arguments like `ab' diff --git a/Master/texmf-dist/tex/latex/physics2/physics2.sty b/Master/texmf-dist/tex/latex/physics2/physics2.sty index c5ddb08686a..3d732b8d292 100644 --- a/Master/texmf-dist/tex/latex/physics2/physics2.sty +++ b/Master/texmf-dist/tex/latex/physics2/physics2.sty @@ -17,7 +17,7 @@ %% \NeedsTeXFormat{LaTeX2e}[2020/10/01] \ProvidesPackage{physics2} - [2023/01/25 Tools for typesetting math for physics.] + [2023/04/02 v0.2.1 Tools for typesetting math for physics.] % Some common variables. \newcount\phy@tempcnta \newdimen\phy@tempdima |