texlive[71311] Master/texmf-dist: thuthesis (20may24)

commits+karl at tug.org commits+karl at tug.org
Mon May 20 22:14:53 CEST 2024


Revision: 71311
          https://tug.org/svn/texlive?view=revision&revision=71311
Author:   karl
Date:     2024-05-20 22:14:53 +0200 (Mon, 20 May 2024)
Log Message:
-----------
thuthesis (20may24)

Modified Paths:
--------------
    trunk/Master/texmf-dist/bibtex/bst/thuthesis/thuthesis-author-year.bst
    trunk/Master/texmf-dist/bibtex/bst/thuthesis/thuthesis-bachelor.bst
    trunk/Master/texmf-dist/bibtex/bst/thuthesis/thuthesis-numeric.bst
    trunk/Master/texmf-dist/doc/latex/thuthesis/CHANGELOG.md
    trunk/Master/texmf-dist/doc/latex/thuthesis/thuthesis-example.pdf
    trunk/Master/texmf-dist/doc/latex/thuthesis/thuthesis.pdf
    trunk/Master/texmf-dist/source/latex/thuthesis/thuthesis.dtx
    trunk/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls

Modified: trunk/Master/texmf-dist/bibtex/bst/thuthesis/thuthesis-author-year.bst
===================================================================
--- trunk/Master/texmf-dist/bibtex/bst/thuthesis/thuthesis-author-year.bst	2024-05-20 20:14:42 UTC (rev 71310)
+++ trunk/Master/texmf-dist/bibtex/bst/thuthesis/thuthesis-author-year.bst	2024-05-20 20:14:53 UTC (rev 71311)
@@ -1314,7 +1314,7 @@
 
 FUNCTION {format.year}
 { year empty$ not
-    { year extract.before.slash extra.label * }
+    { year extra.label * }
     { date empty$ not
         { date extract.before.dash extra.label * }
         { entry.is.electronic not
@@ -1494,7 +1494,7 @@
 
 FUNCTION {check.url}
 { url empty$ not
-    { "\url{" url * "}" * 'entry.url :=
+    { url 'entry.url :=
       #1 'entry.is.electronic :=
     }
     { howpublished empty$ not
@@ -1525,7 +1525,11 @@
 { show.url is.pure.electronic or
   entry.url empty$ not and
     { new.block
-      entry.url output
+      entry.url #1 #5 substring$ "\url{" =
+        { entry.url }
+        { "\url{" entry.url * "}" * }
+      if$
+      output
     }
     'skip$
   if$
@@ -1545,8 +1549,8 @@
     { entry.url empty$
         { #0 }
         { s text.length$ 'len :=
-          entry.url text.length$ 'charptr :=
-            { entry.url charptr len substring$ s = not
+          entry.url "l" change.case$ text.length$ 'charptr :=
+            { entry.url "l" change.case$ charptr len substring$ s "l" change.case$ = not
               charptr #0 >
               and
             }
@@ -2073,7 +2077,7 @@
 
 FUNCTION {manual} { monograph }
 
-FUNCTION {thesis}
+FUNCTION {mastersthesis}
 { "D" set.entry.mark
   monograph
 }
@@ -2088,10 +2092,8 @@
   electronic
 }
 
-FUNCTION {mastersthesis} { thesis }
+FUNCTION {phdthesis} { mastersthesis }
 
-FUNCTION {phdthesis} { thesis }
-
 FUNCTION {proceedings}
 { "C" set.entry.mark
   monograph
@@ -2107,13 +2109,11 @@
   misc
 }
 
-FUNCTION {report}
+FUNCTION {techreport}
 { "R" set.entry.mark
   misc
 }
 
-FUNCTION {techreport} { report }
-
 FUNCTION {unpublished} { misc }
 
 FUNCTION {default.type} { misc }

Modified: trunk/Master/texmf-dist/bibtex/bst/thuthesis/thuthesis-bachelor.bst
===================================================================
--- trunk/Master/texmf-dist/bibtex/bst/thuthesis/thuthesis-bachelor.bst	2024-05-20 20:14:42 UTC (rev 71310)
+++ trunk/Master/texmf-dist/bibtex/bst/thuthesis/thuthesis-bachelor.bst	2024-05-20 20:14:53 UTC (rev 71311)
@@ -1304,7 +1304,7 @@
 
 FUNCTION {format.year}
 { year empty$ not
-    { year extract.before.slash extra.label * }
+    { year extra.label * }
     { date empty$ not
         { date extract.before.dash extra.label * }
         { entry.is.electronic not
@@ -1484,7 +1484,7 @@
 
 FUNCTION {check.url}
 { url empty$ not
-    { "\url{" url * "}" * 'entry.url :=
+    { url 'entry.url :=
       #1 'entry.is.electronic :=
     }
     { howpublished empty$ not
@@ -1515,7 +1515,11 @@
 { show.url is.pure.electronic or
   entry.url empty$ not and
     { new.block
-      entry.url output
+      entry.url #1 #5 substring$ "\url{" =
+        { entry.url }
+        { "\url{" entry.url * "}" * }
+      if$
+      output
     }
     'skip$
   if$
@@ -1535,8 +1539,8 @@
     { entry.url empty$
         { #0 }
         { s text.length$ 'len :=
-          entry.url text.length$ 'charptr :=
-            { entry.url charptr len substring$ s = not
+          entry.url "l" change.case$ text.length$ 'charptr :=
+            { entry.url "l" change.case$ charptr len substring$ s "l" change.case$ = not
               charptr #0 >
               and
             }
@@ -2063,7 +2067,7 @@
 
 FUNCTION {manual} { monograph }
 
-FUNCTION {thesis}
+FUNCTION {mastersthesis}
 { "D" set.entry.mark
   monograph
 }
@@ -2078,10 +2082,8 @@
   electronic
 }
 
-FUNCTION {mastersthesis} { thesis }
+FUNCTION {phdthesis} { mastersthesis }
 
-FUNCTION {phdthesis} { thesis }
-
 FUNCTION {proceedings}
 { "C" set.entry.mark
   monograph
@@ -2097,13 +2099,11 @@
   misc
 }
 
-FUNCTION {report}
+FUNCTION {techreport}
 { "R" set.entry.mark
   misc
 }
 
-FUNCTION {techreport} { report }
-
 FUNCTION {unpublished} { misc }
 
 FUNCTION {default.type} { misc }

Modified: trunk/Master/texmf-dist/bibtex/bst/thuthesis/thuthesis-numeric.bst
===================================================================
--- trunk/Master/texmf-dist/bibtex/bst/thuthesis/thuthesis-numeric.bst	2024-05-20 20:14:42 UTC (rev 71310)
+++ trunk/Master/texmf-dist/bibtex/bst/thuthesis/thuthesis-numeric.bst	2024-05-20 20:14:53 UTC (rev 71311)
@@ -1304,7 +1304,7 @@
 
 FUNCTION {format.year}
 { year empty$ not
-    { year extract.before.slash extra.label * }
+    { year extra.label * }
     { date empty$ not
         { date extract.before.dash extra.label * }
         { entry.is.electronic not
@@ -1484,7 +1484,7 @@
 
 FUNCTION {check.url}
 { url empty$ not
-    { "\url{" url * "}" * 'entry.url :=
+    { url 'entry.url :=
       #1 'entry.is.electronic :=
     }
     { howpublished empty$ not
@@ -1515,7 +1515,11 @@
 { show.url is.pure.electronic or
   entry.url empty$ not and
     { new.block
-      entry.url output
+      entry.url #1 #5 substring$ "\url{" =
+        { entry.url }
+        { "\url{" entry.url * "}" * }
+      if$
+      output
     }
     'skip$
   if$
@@ -1535,8 +1539,8 @@
     { entry.url empty$
         { #0 }
         { s text.length$ 'len :=
-          entry.url text.length$ 'charptr :=
-            { entry.url charptr len substring$ s = not
+          entry.url "l" change.case$ text.length$ 'charptr :=
+            { entry.url "l" change.case$ charptr len substring$ s "l" change.case$ = not
               charptr #0 >
               and
             }
@@ -2063,7 +2067,7 @@
 
 FUNCTION {manual} { monograph }
 
-FUNCTION {thesis}
+FUNCTION {mastersthesis}
 { "D" set.entry.mark
   monograph
 }
@@ -2078,10 +2082,8 @@
   electronic
 }
 
-FUNCTION {mastersthesis} { thesis }
+FUNCTION {phdthesis} { mastersthesis }
 
-FUNCTION {phdthesis} { thesis }
-
 FUNCTION {proceedings}
 { "C" set.entry.mark
   monograph
@@ -2097,13 +2099,11 @@
   misc
 }
 
-FUNCTION {report}
+FUNCTION {techreport}
 { "R" set.entry.mark
   misc
 }
 
-FUNCTION {techreport} { report }
-
 FUNCTION {unpublished} { misc }
 
 FUNCTION {default.type} { misc }

Modified: trunk/Master/texmf-dist/doc/latex/thuthesis/CHANGELOG.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/thuthesis/CHANGELOG.md	2024-05-20 20:14:42 UTC (rev 71310)
+++ trunk/Master/texmf-dist/doc/latex/thuthesis/CHANGELOG.md	2024-05-20 20:14:53 UTC (rev 71311)
@@ -6,6 +6,17 @@
 
 ## [Unreleased]
 
+## [v7.5.1] - 2024-05-20
+
+### Changed
+
+- 更新 `student-id` 选项的处理逻辑,非 `proposal` 类型默认忽略,并增加警告([#945](https://github.com/tuna/thuthesis/issues/945))。
+
+### Fixed
+
+- 修复参考文献 URL 中带有 DOI 时,重复打印 DOI 的问题([#952](https://github.com/tuna/thuthesis/discussions/952))。
+- 修复文档中的部分错别字。
+
 ## [v7.5.0] - 2024-03-29
 
 ### Added
@@ -977,7 +988,8 @@
 
 
 
-[Unreleased]: https://github.com/tuna/thuthesis/compare/v7.5.0...HEAD
+[Unreleased]: https://github.com/tuna/thuthesis/compare/v7.5.1...HEAD
+[v7.5.1]:     https://github.com/tuna/thuthesis/compare/v7.5.0...v7.5.1
 [v7.5.0]:     https://github.com/tuna/thuthesis/compare/v7.4.0...v7.5.0
 [v7.4.0]:     https://github.com/tuna/thuthesis/compare/v7.3.2...v7.4.0
 [v7.3.2]:     https://github.com/tuna/thuthesis/compare/v7.3.1...v7.3.2

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

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

Modified: trunk/Master/texmf-dist/source/latex/thuthesis/thuthesis.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/thuthesis/thuthesis.dtx	2024-05-20 20:14:42 UTC (rev 71310)
+++ trunk/Master/texmf-dist/source/latex/thuthesis/thuthesis.dtx	2024-05-20 20:14:53 UTC (rev 71311)
@@ -14,7 +14,7 @@
 %
 % \iffalse
 %<*driver>
-\ProvidesFile{thuthesis.dtx}[2024/03/29 7.5.0 Tsinghua University Thesis Template]
+\ProvidesFile{thuthesis.dtx}[2024/05/20 7.5.1 Tsinghua University Thesis Template]
 \documentclass{ltxdoc}
 \usepackage{dtx-style}
 
@@ -1243,8 +1243,8 @@
 %     include-spine = true,
 %   }
 % \end{latex}
-% 打开此选项后,书籍会出现在中文封面后面的第一个空白页。如果有英文封面,则在英文封面之前。
-% 如果需要书籍出现在其他位置,请手工使用 \cs{spine} 生成,不要使用此选项。
+% 打开此选项后,书脊会出现在中文封面后面的第一个空白页。如果有英文封面,则在英文封面之前。
+% 如果需要书脊出现在其他位置,请手工使用 \cs{spine} 生成,不要使用此选项。
 %
 % \section{致谢}
 % \label{sec:thanks}
@@ -1269,7 +1269,7 @@
 %    \begin{macrocode}
 %<cls>\NeedsTeXFormat{LaTeX2e}[2017/04/15]
 %<cls>\ProvidesClass{thuthesis}
-%<cls>[2024/03/29 7.5.0 Tsinghua University Thesis Template]
+%<cls>[2024/05/20 7.5.1 Tsinghua University Thesis Template]
 %    \end{macrocode}
 %
 % 报错
@@ -1330,7 +1330,7 @@
 %<*cls>
 \hyphenation{Thu-Thesis}
 \def\thuthesis{ThuThesis}
-\def\version{7.5.0}
+\def\version{7.5.1}
 \RequirePackage{kvdefinekeys}
 \RequirePackage{kvsetkeys}
 \RequirePackage{kvoptions}
@@ -4584,14 +4584,15 @@
   \restoregeometry
 }
 \newcommand\thu at set@student at id{%
-  \ifthu at thesis@type at proposal
-    \ifx\thu at student@id\@empty
-      \thusetup{student-id=2000310000}%
+  \ifthu at thesis@type at proposal\else
+    \ifx\thu at student@id\@empty\else
+      \thu at warning{`student-id' in "\protect\thusetup" would be ignored when `thesis-type' is not proposal.}%
     \fi
   \fi
 }
 \thu at set@student at id
 \thu at option@hook{thesis-type}{\thu at set@student at id}
+\thu at option@hook{student-id}{\thu at set@student at id}
 %    \end{macrocode}
 %
 % 涉密信息
@@ -4656,7 +4657,13 @@
       \thu at info@item{工程领域}{}{\thu at engineering@field}%
       \thu at info@item{申请人}{\thu at name@title}{\thu at author}%
     \fi
-    \thu at info@item{学号}{}{\thu at student@id}%
+    \ifthu at thesis@type at proposal
+      \ifx\thu at student@id\@empty
+        \thu at warning{Missing option `student-id' in "\protect\thusetup", ID will not appear on cover.}
+      \else
+        \thu at info@item{学号}{}{\thu at student@id}%
+      \fi
+    \fi
     \thu at info@item{指导教师}{\thu at name@title}{\thu at supervisor}%
     \thu at info@item{副指导教师}{\thu at name@title}{\thu at associate@supervisor}%
     \thu at info@item{联合指导教师}{\thu at name@title}{\thu at co@supervisor}%

Modified: trunk/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls	2024-05-20 20:14:42 UTC (rev 71310)
+++ trunk/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls	2024-05-20 20:14:53 UTC (rev 71311)
@@ -23,7 +23,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}[2017/04/15]
 \ProvidesClass{thuthesis}
-[2024/03/29 7.5.0 Tsinghua University Thesis Template]
+[2024/05/20 7.5.1 Tsinghua University Thesis Template]
 \newcommand\thu at error[1]{%
   \ClassError{thuthesis}{#1}{}%
 }
@@ -61,7 +61,7 @@
 }
 \hyphenation{Thu-Thesis}
 \def\thuthesis{ThuThesis}
-\def\version{7.5.0}
+\def\version{7.5.1}
 \RequirePackage{kvdefinekeys}
 \RequirePackage{kvsetkeys}
 \RequirePackage{kvoptions}
@@ -2441,14 +2441,15 @@
   \restoregeometry
 }
 \newcommand\thu at set@student at id{%
-  \ifthu at thesis@type at proposal
-    \ifx\thu at student@id\@empty
-      \thusetup{student-id=2000310000}%
+  \ifthu at thesis@type at proposal\else
+    \ifx\thu at student@id\@empty\else
+      \thu at warning{`student-id' in "\protect\thusetup" would be ignored when `thesis-type' is not proposal.}%
     \fi
   \fi
 }
 \thu at set@student at id
 \thu at option@hook{thesis-type}{\thu at set@student at id}
+\thu at option@hook{student-id}{\thu at set@student at id}
 \newcommand\thu at titlepage@secret{%
   \sffamily\sanhao
   \ifx\thu at secret@level\@empty
@@ -2500,7 +2501,13 @@
       \thu at info@item{工程领域}{}{\thu at engineering@field}%
       \thu at info@item{申请人}{\thu at name@title}{\thu at author}%
     \fi
-    \thu at info@item{学号}{}{\thu at student@id}%
+    \ifthu at thesis@type at proposal
+      \ifx\thu at student@id\@empty
+        \thu at warning{Missing option `student-id' in "\protect\thusetup", ID will not appear on cover.}
+      \else
+        \thu at info@item{学号}{}{\thu at student@id}%
+      \fi
+    \fi
     \thu at info@item{指导教师}{\thu at name@title}{\thu at supervisor}%
     \thu at info@item{副指导教师}{\thu at name@title}{\thu at associate@supervisor}%
     \thu at info@item{联合指导教师}{\thu at name@title}{\thu at co@supervisor}%



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