diff options
author | Karl Berry <karl@freefriends.org> | 2024-01-10 20:43:48 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-01-10 20:43:48 +0000 |
commit | 9c5953fc6d090a5e9d1b9e7145ea2df9ced77a32 (patch) | |
tree | 47629c79a62cd8fb02e19a3133de393b5805ae25 /Master/texmf-dist/tex | |
parent | 7652b0a2c265fdad2d7f7d1eb6e16d664b5fb79e (diff) |
physics2 (10jan24)
git-svn-id: svn://tug.org/texlive/trunk@69369 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/physics2/phy-diagmat.sty | 15 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/physics2/physics2.sty | 2 |
2 files changed, 7 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/physics2/phy-diagmat.sty b/Master/texmf-dist/tex/latex/physics2/phy-diagmat.sty index 5bd6c6229dc..87b4562197b 100644 --- a/Master/texmf-dist/tex/latex/physics2/phy-diagmat.sty +++ b/Master/texmf-dist/tex/latex/physics2/phy-diagmat.sty @@ -29,14 +29,11 @@ %% physics2-code.pdf, %% and README.md. %% -\ProvidesExplFile{phy-diagmat.sty}{2023/10/24}{} +\ProvidesExplFile{phy-diagmat.sty}{2024/01/10}{} {`diagmat' module of physics2} \RequirePackage { amsmath } \phy@define@key { diagmat } { empty } [ 0 ] { \tl_gset:Nn \l__phy_mat_empty_tl { #1 } } \clist_new:N \l__phy_mat_diag_clist -\clist_new:N \l__phy_mat_tmpa_clist -\clist_new:N \l__phy_mat_tmpb_clist -\clist_new:N \l__phy_mat_diagpos_clist \int_new:N \l__phy_mat_dim_int \tl_new:N \l__phy_mat_line_tl \tl_new:N \l__phy_diagmat_tl @@ -68,19 +65,19 @@ { \setcounter { MaxMatrixCols } { \l__phy_mat_dim_int } } \keys_set:nn { phy/diagmat } { #2 } \tl_gclear:N \l__phy_diagmat_tl - \int_step_inline:nnn { 0 } { \l__phy_mat_dim_int - 1 } + \int_step_inline:nnn { 1 } { \l__phy_mat_dim_int } { - \int_step_inline:nnn { 0 } { \l__phy_mat_dim_int - 1 } + \int_step_inline:nnn { 1 } { \l__phy_mat_dim_int } { \int_compare:nNnTF { ##1 } = { ####1 } { \clist_gpop:NN \l__phy_mat_diag_clist \l__phy_tmpa_tl \tl_if_empty:NTF \l__phy_tmpa_tl { \tl_gput_right:Nn \l__phy_mat_line_tl { \l__phy_mat_empty_tl } } - { \tl_gput_right:Nx \l__phy_mat_line_tl { \l__phy_tmpa_tl } } + { \tl_gput_right:No \l__phy_mat_line_tl { \l__phy_tmpa_tl } } } { \tl_gput_right:Nn \l__phy_mat_line_tl { \l__phy_mat_empty_tl } } - \int_compare:nNnTF { ####1 } = { \l__phy_mat_dim_int - 1 } + \int_compare:nNnTF { ####1 } = { \l__phy_mat_dim_int } { \tl_gput_right:Nn \l__phy_mat_line_tl { \\ } } @@ -88,7 +85,7 @@ \tl_gput_right:Nn \l__phy_mat_line_tl { & } } } - \tl_gput_right:Nx \l__phy_diagmat_tl { \l__phy_mat_line_tl } + \tl_gput_right:No \l__phy_diagmat_tl { \l__phy_mat_line_tl } \tl_gclear:N \l__phy_mat_line_tl } \begin { #1 matrix } diff --git a/Master/texmf-dist/tex/latex/physics2/physics2.sty b/Master/texmf-dist/tex/latex/physics2/physics2.sty index 0c6758e6364..e16db4c1dfb 100644 --- a/Master/texmf-dist/tex/latex/physics2/physics2.sty +++ b/Master/texmf-dist/tex/latex/physics2/physics2.sty @@ -31,7 +31,7 @@ %% \NeedsTeXFormat{LaTeX2e}[2020/10/01] \ProvidesPackage{physics2} - [2023/10/24 v1.0.0 Tools for typesetting math for physics.] + [2024/01/10 v1.0.1 Tools for typesetting math for physics.] \newcount \phy@tempcnta \newdimen \phy@tempdima \newdimen \phy@tempdimb |