texlive[65750] Master/texmf-dist: xduts (7feb23)

commits+karl at tug.org commits+karl at tug.org
Tue Feb 7 21:45:45 CET 2023


Revision: 65750
          http://tug.org/svn/texlive?view=revision&revision=65750
Author:   karl
Date:     2023-02-07 21:45:45 +0100 (Tue, 07 Feb 2023)
Log Message:
-----------
xduts (7feb23)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/xelatex/xduts/xduts.pdf
    trunk/Master/texmf-dist/source/xelatex/xduts/xduts.dtx
    trunk/Master/texmf-dist/tex/xelatex/xduts/xdufont.sty
    trunk/Master/texmf-dist/tex/xelatex/xduts/xdupgthesis.cls
    trunk/Master/texmf-dist/tex/xelatex/xduts/xduugthesis.cls
    trunk/Master/texmf-dist/tex/xelatex/xduts/xduugtp.cls

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

Modified: trunk/Master/texmf-dist/source/xelatex/xduts/xduts.dtx
===================================================================
--- trunk/Master/texmf-dist/source/xelatex/xduts/xduts.dtx	2023-02-07 20:45:23 UTC (rev 65749)
+++ trunk/Master/texmf-dist/source/xelatex/xduts/xduts.dtx	2023-02-07 20:45:45 UTC (rev 65750)
@@ -1,7 +1,7 @@
 % \iffalse
 %<*driver>
 \ProvidesFile{xduts.dtx}
-[2023/02/03 v4.4.0.0 Xidian University TeX Suite]
+[2023/02/06 v4.4.2.0 Xidian University TeX Suite]
 %</driver>
 %<class|sty>\NeedsTeXFormat{LaTeX2e}
 %<class|sty>\RequirePackage{expl3}
@@ -9,7 +9,7 @@
 %<xduugtp>\ProvidesExplClass{xduugtp}
 %<xdupgthesis>\ProvidesExplClass{xdupgthesis}
 %<xduugthesis>\ProvidesExplClass{xduugthesis}
-%<class|sty>  {2023/02/03}{4.4.0.0}
+%<class|sty>  {2023/02/06}{4.4.2.0}
 %<xdufont>  {Xidian University Font package}
 %<xduugtp>  {Xidian University Undergraduate Thesis Proposal class}
 %<xdupgthesis>  {Xidian University Postgraduate Thesis document class}
@@ -5180,6 +5180,7 @@
 %    \end{macrocode}
 % \end{macro}
 % \begin{macro}{\DeclareCaptionFont,\captionsetup*}
+% \changes{v4.4.2.0}{2023/02/06}{修正\pkgx{algorithm}算法caption对齐方式}
 % \changes{v3.1.1.0}{2022/12/04}{修正\pkgx{algorithm}算法caption格式设置}
 % \changes{v3.0.0.0}{2022/12/03}{设置\pkgx{algorithm}算法caption格式}
 % \changes{v2.18.0.0}{2022/11/28}{设置\pkgx{algorithm}算法caption对齐方式}
@@ -5208,13 +5209,13 @@
       { \captionsetup* [ algorithm ] { format = hang  } }
       { \captionsetup* [ algorithm ] { format = plain } }
     \captionsetup* [ ruled ] { strut = off }
-    \tl_if_eq:NnTF \l_@@_ft_cap_align_tl { left }
+    \tl_if_eq:NnTF \l_@@_alg_cap_align_tl { left }
       {
         \captionsetup* [ algorithm ]
           { singlelinecheck = false, justification = justified }
       }
       {
-        \tl_if_eq:NnTF \l_@@_ft_cap_align_tl { centering }
+        \tl_if_eq:NnTF \l_@@_alg_cap_align_tl { centering }
           {
             \captionsetup* [ algorithm ]
               { singlelinecheck = false, justification = centerlast }
@@ -5227,6 +5228,7 @@
   }
 %    \end{macrocode}
 % \end{macro}
+% \changes{v4.4.1.0}{2023/02/06}{修正\pkgx{algorithm}算法三线间距配置}
 % \changes{v3.1.0.0}{2022/12/03}{设置\pkgx{algorithm}算法三线间距}
 % \begin{macro}{\ctex_at_end_preamble:n}
 % 设置\pkgx{algorithm}算法三线间距。
@@ -5235,14 +5237,18 @@
   {
     \bool_if:NT \l_@@_add_alg_rule_vspace_bool
       {
-        \cs_set:Npn \fs at ruled
+        \@ifpackageloaded { algorithm }
           {
-            \cs_set_eq:NN \@fs at capt \floatc at plain
-            \cs_set:Npn   \@fs at pre  { \hrule height .8pt depth 0pt \kern 5pt }
-            \cs_set:Npn   \@fs at post { \kern 5pt \hrule \relax                }
-            \cs_set:Npn   \@fs at mid  { \kern 5pt \hrule \kern 5pt             }
-            \cs_set_eq:NN \@fs at iftopcapt \iftrue
+            \cs_set:Npn \fs at ruled
+              {
+                \cs_set_eq:NN \@fs at capt \floatc at plain
+                \cs_set:Npn   \@fs at pre  { \hrule height .8pt depth 0pt \kern 5pt }
+                \cs_set:Npn   \@fs at post { \kern 5pt \hrule \relax                }
+                \cs_set:Npn   \@fs at mid  { \kern 5pt \hrule \kern 5pt             }
+                \cs_set_eq:NN \@fs at iftopcapt \iftrue
+              }
           }
+          { }
       }
   }
 %    \end{macrocode}
@@ -5257,7 +5263,7 @@
 %    \begin{macrocode}
 \ctex_at_end_preamble:n
   {
-    \cs_if_exist:NT \thealgocf
+    \@ifpackageloaded { algorithm2e }
       {
         \SetAlgoCaptionSeparator { \hbox_to_wd:nn { \l_@@_cap_label_sep_tl } { } }
         \bool_if:NTF \l_@@_alg_small_cap_bool
@@ -5320,14 +5326,16 @@
                   }
               }
           }
-      \RenewDocumentCommand { \algocf at makecaption@ruled } { mm }
-        { \global \sbox \algocf at capbox { \algocf at makecaption { #1 } { #2 } } }
-      \RenewDocumentCommand { \algocf at makecaption@boxed } { mm }
-        { \global \sbox \algocf at capbox { \algocf at makecaption { #1 } { #2 } } }
+        \RenewDocumentCommand { \algocf at makecaption@ruled } { mm }
+          { \global \sbox \algocf at capbox { \algocf at makecaption { #1 } { #2 } } }
+        \RenewDocumentCommand { \algocf at makecaption@boxed } { mm }
+          { \global \sbox \algocf at capbox { \algocf at makecaption { #1 } { #2 } } }
       }
+      { }
   }
 %    \end{macrocode}
 % \end{macro}
+% \changes{v4.4.1.0}{2023/02/06}{修正\pkgx{algorithm2e}算法三线间距配置}
 % \changes{v3.1.0.0}{2022/12/03}{设置\pkgx{algorithm2e}算法三线间距}
 % \begin{macro}{\ctex_at_end_preamble:n}
 % 设置\pkgx{algorithm2e}算法三线间距。
@@ -5336,8 +5344,12 @@
   {
     \bool_if:NT \l_@@_add_alg_rule_vspace_bool
       {
-        \dim_set:Nn \interspacetitleruled { 5pt }
-        \dim_set:Nn \interspacealgoruled  { 5pt }
+        \@ifpackageloaded { algorithm2e }
+          {
+            \dim_set:Nn \interspacetitleruled { 5pt }
+            \dim_set:Nn \interspacealgoruled  { 5pt }
+          }
+          { }
       }
   }
 %    \end{macrocode}

Modified: trunk/Master/texmf-dist/tex/xelatex/xduts/xdufont.sty
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xduts/xdufont.sty	2023-02-07 20:45:23 UTC (rev 65749)
+++ trunk/Master/texmf-dist/tex/xelatex/xduts/xdufont.sty	2023-02-07 20:45:45 UTC (rev 65750)
@@ -29,7 +29,7 @@
 \NeedsTeXFormat{LaTeX2e}
 \RequirePackage{expl3}
 \ProvidesExplPackage{xdufont}
-  {2023/02/03}{4.4.0.0}
+  {2023/02/06}{4.4.2.0}
   {Xidian University Font package}
 \RequirePackage { xparse, l3keys2e }
 \PassOptionsToPackage { quiet } { xeCJK }

Modified: trunk/Master/texmf-dist/tex/xelatex/xduts/xdupgthesis.cls
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xduts/xdupgthesis.cls	2023-02-07 20:45:23 UTC (rev 65749)
+++ trunk/Master/texmf-dist/tex/xelatex/xduts/xdupgthesis.cls	2023-02-07 20:45:45 UTC (rev 65750)
@@ -29,7 +29,7 @@
 \NeedsTeXFormat{LaTeX2e}
 \RequirePackage{expl3}
 \ProvidesExplClass{xdupgthesis}
-  {2023/02/03}{4.4.0.0}
+  {2023/02/06}{4.4.2.0}
   {Xidian University Postgraduate Thesis document class}
 \RequirePackage { xparse, l3keys2e }
 \PassOptionsToPackage { quiet } { xeCJK }
@@ -1357,13 +1357,13 @@
       { \captionsetup* [ algorithm ] { format = hang  } }
       { \captionsetup* [ algorithm ] { format = plain } }
     \captionsetup* [ ruled ] { strut = off }
-    \tl_if_eq:NnTF \l__xdu_ft_cap_align_tl { left }
+    \tl_if_eq:NnTF \l__xdu_alg_cap_align_tl { left }
       {
         \captionsetup* [ algorithm ]
           { singlelinecheck = false, justification = justified }
       }
       {
-        \tl_if_eq:NnTF \l__xdu_ft_cap_align_tl { centering }
+        \tl_if_eq:NnTF \l__xdu_alg_cap_align_tl { centering }
           {
             \captionsetup* [ algorithm ]
               { singlelinecheck = false, justification = centerlast }
@@ -1378,19 +1378,23 @@
   {
     \bool_if:NT \l__xdu_add_alg_rule_vspace_bool
       {
-        \cs_set:Npn \fs at ruled
+        \@ifpackageloaded { algorithm }
           {
-            \cs_set_eq:NN \@fs at capt \floatc at plain
-            \cs_set:Npn   \@fs at pre  { \hrule height .8pt depth 0pt \kern 5pt }
-            \cs_set:Npn   \@fs at post { \kern 5pt \hrule \relax                }
-            \cs_set:Npn   \@fs at mid  { \kern 5pt \hrule \kern 5pt             }
-            \cs_set_eq:NN \@fs at iftopcapt \iftrue
+            \cs_set:Npn \fs at ruled
+              {
+                \cs_set_eq:NN \@fs at capt \floatc at plain
+                \cs_set:Npn   \@fs at pre  { \hrule height .8pt depth 0pt \kern 5pt }
+                \cs_set:Npn   \@fs at post { \kern 5pt \hrule \relax                }
+                \cs_set:Npn   \@fs at mid  { \kern 5pt \hrule \kern 5pt             }
+                \cs_set_eq:NN \@fs at iftopcapt \iftrue
+              }
           }
+          { }
       }
   }
 \ctex_at_end_preamble:n
   {
-    \cs_if_exist:NT \thealgocf
+    \@ifpackageloaded { algorithm2e }
       {
         \SetAlgoCaptionSeparator { \hbox_to_wd:nn { \l__xdu_cap_label_sep_tl } { } }
         \bool_if:NTF \l__xdu_alg_small_cap_bool
@@ -1450,18 +1454,23 @@
                   }
               }
           }
-      \RenewDocumentCommand { \algocf at makecaption@ruled } { mm }
-        { \global \sbox \algocf at capbox { \algocf at makecaption { #1 } { #2 } } }
-      \RenewDocumentCommand { \algocf at makecaption@boxed } { mm }
-        { \global \sbox \algocf at capbox { \algocf at makecaption { #1 } { #2 } } }
+        \RenewDocumentCommand { \algocf at makecaption@ruled } { mm }
+          { \global \sbox \algocf at capbox { \algocf at makecaption { #1 } { #2 } } }
+        \RenewDocumentCommand { \algocf at makecaption@boxed } { mm }
+          { \global \sbox \algocf at capbox { \algocf at makecaption { #1 } { #2 } } }
       }
+      { }
   }
 \ctex_at_end_preamble:n
   {
     \bool_if:NT \l__xdu_add_alg_rule_vspace_bool
       {
-        \dim_set:Nn \interspacetitleruled { 5pt }
-        \dim_set:Nn \interspacealgoruled  { 5pt }
+        \@ifpackageloaded { algorithm2e }
+          {
+            \dim_set:Nn \interspacetitleruled { 5pt }
+            \dim_set:Nn \interspacealgoruled  { 5pt }
+          }
+          { }
       }
   }
 \cs_new:Npn \__xdu_tblr_caption_box:n #1

Modified: trunk/Master/texmf-dist/tex/xelatex/xduts/xduugthesis.cls
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xduts/xduugthesis.cls	2023-02-07 20:45:23 UTC (rev 65749)
+++ trunk/Master/texmf-dist/tex/xelatex/xduts/xduugthesis.cls	2023-02-07 20:45:45 UTC (rev 65750)
@@ -29,7 +29,7 @@
 \NeedsTeXFormat{LaTeX2e}
 \RequirePackage{expl3}
 \ProvidesExplClass{xduugthesis}
-  {2023/02/03}{4.4.0.0}
+  {2023/02/06}{4.4.2.0}
   {Xidian University Undergraduate Thesis document class}
 \RequirePackage { xparse, l3keys2e }
 \PassOptionsToPackage { quiet } { xeCJK }
@@ -1132,13 +1132,13 @@
       { \captionsetup* [ algorithm ] { format = hang  } }
       { \captionsetup* [ algorithm ] { format = plain } }
     \captionsetup* [ ruled ] { strut = off }
-    \tl_if_eq:NnTF \l__xdu_ft_cap_align_tl { left }
+    \tl_if_eq:NnTF \l__xdu_alg_cap_align_tl { left }
       {
         \captionsetup* [ algorithm ]
           { singlelinecheck = false, justification = justified }
       }
       {
-        \tl_if_eq:NnTF \l__xdu_ft_cap_align_tl { centering }
+        \tl_if_eq:NnTF \l__xdu_alg_cap_align_tl { centering }
           {
             \captionsetup* [ algorithm ]
               { singlelinecheck = false, justification = centerlast }
@@ -1153,19 +1153,23 @@
   {
     \bool_if:NT \l__xdu_add_alg_rule_vspace_bool
       {
-        \cs_set:Npn \fs at ruled
+        \@ifpackageloaded { algorithm }
           {
-            \cs_set_eq:NN \@fs at capt \floatc at plain
-            \cs_set:Npn   \@fs at pre  { \hrule height .8pt depth 0pt \kern 5pt }
-            \cs_set:Npn   \@fs at post { \kern 5pt \hrule \relax                }
-            \cs_set:Npn   \@fs at mid  { \kern 5pt \hrule \kern 5pt             }
-            \cs_set_eq:NN \@fs at iftopcapt \iftrue
+            \cs_set:Npn \fs at ruled
+              {
+                \cs_set_eq:NN \@fs at capt \floatc at plain
+                \cs_set:Npn   \@fs at pre  { \hrule height .8pt depth 0pt \kern 5pt }
+                \cs_set:Npn   \@fs at post { \kern 5pt \hrule \relax                }
+                \cs_set:Npn   \@fs at mid  { \kern 5pt \hrule \kern 5pt             }
+                \cs_set_eq:NN \@fs at iftopcapt \iftrue
+              }
           }
+          { }
       }
   }
 \ctex_at_end_preamble:n
   {
-    \cs_if_exist:NT \thealgocf
+    \@ifpackageloaded { algorithm2e }
       {
         \SetAlgoCaptionSeparator { \hbox_to_wd:nn { \l__xdu_cap_label_sep_tl } { } }
         \bool_if:NTF \l__xdu_alg_small_cap_bool
@@ -1225,18 +1229,23 @@
                   }
               }
           }
-      \RenewDocumentCommand { \algocf at makecaption@ruled } { mm }
-        { \global \sbox \algocf at capbox { \algocf at makecaption { #1 } { #2 } } }
-      \RenewDocumentCommand { \algocf at makecaption@boxed } { mm }
-        { \global \sbox \algocf at capbox { \algocf at makecaption { #1 } { #2 } } }
+        \RenewDocumentCommand { \algocf at makecaption@ruled } { mm }
+          { \global \sbox \algocf at capbox { \algocf at makecaption { #1 } { #2 } } }
+        \RenewDocumentCommand { \algocf at makecaption@boxed } { mm }
+          { \global \sbox \algocf at capbox { \algocf at makecaption { #1 } { #2 } } }
       }
+      { }
   }
 \ctex_at_end_preamble:n
   {
     \bool_if:NT \l__xdu_add_alg_rule_vspace_bool
       {
-        \dim_set:Nn \interspacetitleruled { 5pt }
-        \dim_set:Nn \interspacealgoruled  { 5pt }
+        \@ifpackageloaded { algorithm2e }
+          {
+            \dim_set:Nn \interspacetitleruled { 5pt }
+            \dim_set:Nn \interspacealgoruled  { 5pt }
+          }
+          { }
       }
   }
 \cs_new:Npn \__xdu_tblr_caption_box:n #1

Modified: trunk/Master/texmf-dist/tex/xelatex/xduts/xduugtp.cls
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xduts/xduugtp.cls	2023-02-07 20:45:23 UTC (rev 65749)
+++ trunk/Master/texmf-dist/tex/xelatex/xduts/xduugtp.cls	2023-02-07 20:45:45 UTC (rev 65750)
@@ -29,7 +29,7 @@
 \NeedsTeXFormat{LaTeX2e}
 \RequirePackage{expl3}
 \ProvidesExplClass{xduugtp}
-  {2023/02/03}{4.4.0.0}
+  {2023/02/06}{4.4.2.0}
   {Xidian University Undergraduate Thesis Proposal class}
 \RequirePackage { xparse, l3keys2e }
 \PassOptionsToPackage { quiet } { xeCJK }



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