texlive[66742] Master/texmf-dist: physics2 (2apr23)

commits+karl at tug.org commits+karl at tug.org
Sun Apr 2 22:31:09 CEST 2023


Revision: 66742
          http://tug.org/svn/texlive?view=revision&revision=66742
Author:   karl
Date:     2023-04-02 22:31:09 +0200 (Sun, 02 Apr 2023)
Log Message:
-----------
physics2 (2apr23)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/physics2/phy2docdef.tex
    trunk/Master/texmf-dist/doc/latex/physics2/physics2-legacy.pdf
    trunk/Master/texmf-dist/doc/latex/physics2/physics2.pdf
    trunk/Master/texmf-dist/tex/latex/physics2/phy-ab.braket.sty
    trunk/Master/texmf-dist/tex/latex/physics2/phy-ab.sty
    trunk/Master/texmf-dist/tex/latex/physics2/physics2.sty

Modified: trunk/Master/texmf-dist/doc/latex/physics2/phy2docdef.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/physics2/phy2docdef.tex	2023-04-02 20:30:47 UTC (rev 66741)
+++ trunk/Master/texmf-dist/doc/latex/physics2/phy2docdef.tex	2023-04-02 20:31:09 UTC (rev 66742)
@@ -64,7 +64,7 @@
 \newenvironment{example}
   {\stepcounter{example}\example at start}{\example at 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

Modified: trunk/Master/texmf-dist/doc/latex/physics2/physics2-legacy.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/physics2/physics2.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/tex/latex/physics2/phy-ab.braket.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/physics2/phy-ab.braket.sty	2023-04-02 20:30:47 UTC (rev 66741)
+++ trunk/Master/texmf-dist/tex/latex/physics2/phy-ab.braket.sty	2023-04-02 20:31:09 UTC (rev 66742)
@@ -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 at abopen and \phy at abclose from `ab'.
 \phy at requiremodule{ab}
 \ifdefined\phy at bra@@
@@ -25,13 +25,13 @@
     modules together.\MessageBreak Only `ab.braket' module works now.}
 \fi
 % \bra<foo|
-\phy at AB@gen{br.m}<{mr<|}{\mathopen#1\langle#2\mathclose#1\vert}
+\phy at AB@gen{br.m}<{mr<|}{\mathopen#1\langle#2\mathclose#1\vert\endgroup}
 \phy at AB@gen{br.a}<{r<|}{\phy at abopen\langle#1\phy at abclose\vert}
 \phy at d@l at genxm{br.m}
 \phy at d@l at genxa{br.a}
 \DeclareRobustCommand\bra{\phy at d@lx{br.m}{br.a}}
 % \ket|foo>
-\phy at AB@gen{kt.m}|{mr|>}{\mathopen#1\vert#2\mathclose#1\rangle}
+\phy at AB@gen{kt.m}|{mr|>}{\mathopen#1\vert#2\mathclose#1\rangle\endgroup}
 \phy at AB@gen{kt.a}|{r|>}{\phy at abopen\vert#1\phy at abclose\rangle}
 \phy at d@l at genxm{kt.m}
 \phy at d@l at genxa{kt.a}
@@ -49,7 +49,7 @@
   \phy at abopen\langle\bgroup#1\egroup\phy at abclose\rangle\endgroup}
 \endgroup
 \def\phy at abb@bkv{\middle\vert}
-\phy at AB@gen{bk.m}<{mr<>}{\phy@@mb at bk#1{#2}}
+\phy at AB@gen{bk.m}<{mr<>}{\phy@@mb at bk#1{#2}\endgroup}
 \phy at AB@gen{bk.a}<{r<>}{\phy@@ab at bk{#1}}
 \phy at d@l at genxm{bk.m}
 \phy at d@l at genxa{bk.a}
@@ -75,7 +75,7 @@
 \fi}
 \def\phy at abb@l{\mathchar"313C }
 \def\phy at abb@r{\mathchar"313E }
-\phy at AB@gen{kb.m}|{mr||}{\phy@@mb at kb#1{#2}}
+\phy at AB@gen{kb.m}|{mr||}{\phy@@mb at kb#1{#2}\endgroup}
 \phy at AB@gen{kb.a}|{r||}{\phy@@ab at kb#1\phy@@end}
 \phy at d@l at genxm{kb.m}
 \phy at d@l at genxa{kb.a}

Modified: trunk/Master/texmf-dist/tex/latex/physics2/phy-ab.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/physics2/phy-ab.sty	2023-04-02 20:30:47 UTC (rev 66741)
+++ trunk/Master/texmf-dist/tex/latex/physics2/phy-ab.sty	2023-04-02 20:31:09 UTC (rev 66742)
@@ -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 at requiremodule{common}
 % The `tightbraces' bool option, true or false.
 \phy at define@key{ab}{tightbraces}[true]{\def\@phy at abtight{#1}}
@@ -47,16 +47,17 @@
 \phy at AB@gen{ab}\Vert{r\Vert\Vert}{\phy at abopen\Vert#1\phy at abclose\Vert}
 \phy at AB@gen{ab}\langle{r\langle\rangle}{\phy at abopen\langle#1\phy at abclose\rangle}
 % #1 (m): \biggg; #2 (r<token1><token2>): inner content.
-\phy at AB@gen{mb}({mr()}{\mathopen#1(#2\mathclose#1)}
-\phy at AB@gen{mb}[{mr[]}{\mathopen#1[#2\mathclose#1]}
-\phy at AB@gen{mb}\{{mr\{\}}{\mathopen#1\lbrace#2\mathclose#1\rbrace}
-\phy at AB@gen{mb}|{mr||}{\mathopen#1\vert#2\mathclose#1\vert}
-\phy at AB@gen{mb}\|{mr\|\|}{\mathopen#1\Vert#2\mathclose#1\Vert}
-\phy at AB@gen{mb}<{mr<>}{\mathopen#1\langle#2\mathclose#1\rangle}
-\phy at AB@gen{mb}\lbrace{mr\lbrace\rbrace}{\mathopen#1\lbrace#2\mathclose#1\rbrace}
-\phy at AB@gen{mb}\vert{mr\vert\vert}{\mathopen#1\vert#2\mathclose#1\vert}
-\phy at AB@gen{mb}\Vert{mr\Vert\Vert}{\mathopen#1\Vert#2\mathclose#1\Vert}
-\phy at 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 at d@l at genxm.
+\phy at AB@gen{mb}({mr()}{\mathopen#1(#2\mathclose#1)\endgroup}
+\phy at AB@gen{mb}[{mr[]}{\mathopen#1[#2\mathclose#1]\endgroup}
+\phy at AB@gen{mb}\{{mr\{\}}{\mathopen#1\lbrace#2\mathclose#1\rbrace\endgroup}
+\phy at AB@gen{mb}|{mr||}{\mathopen#1\vert#2\mathclose#1\vert\endgroup}
+\phy at AB@gen{mb}\|{mr\|\|}{\mathopen#1\Vert#2\mathclose#1\Vert\endgroup}
+\phy at AB@gen{mb}<{mr<>}{\mathopen#1\langle#2\mathclose#1\rangle\endgroup}
+\phy at AB@gen{mb}\lbrace{mr\lbrace\rbrace}{\mathopen#1\lbrace#2\mathclose#1\rbrace\endgroup}
+\phy at AB@gen{mb}\vert{mr\vert\vert}{\mathopen#1\vert#2\mathclose#1\vert\endgroup}
+\phy at AB@gen{mb}\Vert{mr\Vert\Vert}{\mathopen#1\Vert#2\mathclose#1\Vert\endgroup}
+\phy at AB@gen{mb}\langle{mr\langle\rangle}{\mathopen#1\langle#2\mathclose#1\rangle\endgroup}
 % \phy at del, the automatic braces. #1: opensymbol; #2: close symbol; #3
 \def\phy at del#1#2#3{\phy at abopen#1#3\phy at abclose#2}
 \expandafter\def\csname phy at del\string*\endcsname#1#2#3{\mathopen#1#3\mathclose#2}
@@ -70,7 +71,7 @@
 % #1: `mb', according to \phy at AB@gen; #2: `ab'; #3: star or big or left delimiter.
 \def\phy at d@lx#1#2#3{%
   \ifcsname phy at del\string#3\endcsname%
-    \def\reserved at a{#1}% #3 is star or biggg, then get the next argument.
+    \def\reserved at a{#1}% #3 is star or \biggg, then get the next argument.
   \else%
     \def\reserved at a{#2}% #3 is delimiter, the braces are automatic.
   \fi%
@@ -78,6 +79,7 @@
 % The first two arguments of \phy at d@lx need to be generated by the following two commands.
 \def\phy at d@l at genxm#1{% generate arguments like `mb'
   \expandafter\def\csname phy at d@lx#1\endcsname##1##2{%
+    \begingroup% \endgroup in \phy at AB@gen{mb}<open><arg><definition>
     \ifx##1*\let\phy at tempa=\relax\else\let\phy at tempa=##1\fi
     \csname phy@#1@\string##2\endcsname\phy at tempa##2}}
 \def\phy at d@l at genxa#1{% generate arguments like `ab'

Modified: trunk/Master/texmf-dist/tex/latex/physics2/physics2.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/physics2/physics2.sty	2023-04-02 20:30:47 UTC (rev 66741)
+++ trunk/Master/texmf-dist/tex/latex/physics2/physics2.sty	2023-04-02 20:31:09 UTC (rev 66742)
@@ -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 at tempcnta
 \newdimen\phy at tempdima



More information about the tex-live-commits mailing list.