From 7b5d9a2c3eb8e822cdc3fe041406d98eb813044c Mon Sep 17 00:00:00 2001 From: shadowofgost Date: Tue, 21 May 2024 23:43:05 +0800 Subject: [PATCH] Update image file names and references --- bibstyle/thuthesis-author-year.bst | 24 ++++++++++++------------ bibstyle/thuthesis-bachelor.bst | 24 ++++++++++++------------ bibstyle/thuthesis-numeric.bst | 24 ++++++++++++------------ sudathesis.cls | 5 ++++- 4 files changed, 40 insertions(+), 37 deletions(-) diff --git a/bibstyle/thuthesis-author-year.bst b/bibstyle/thuthesis-author-year.bst index 9a46a4e..03d0286 100644 --- a/bibstyle/thuthesis-author-year.bst +++ b/bibstyle/thuthesis-author-year.bst @@ -1314,7 +1314,7 @@ FUNCTION {extract.after.slash} 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 {format.periodical.year.volume.number} FUNCTION {check.url} { url empty$ not - { "\url{" url * "}" * 'entry.url := + { url 'entry.url := #1 'entry.is.electronic := } { howpublished empty$ not @@ -1525,7 +1525,11 @@ FUNCTION {output.url} { 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 @@ FUNCTION {is.in.url} { 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 {map} FUNCTION {manual} { monograph } -FUNCTION {thesis} +FUNCTION {mastersthesis} { "D" set.entry.mark monograph } @@ -2088,9 +2092,7 @@ FUNCTION {online} electronic } -FUNCTION {mastersthesis} { thesis } - -FUNCTION {phdthesis} { thesis } +FUNCTION {phdthesis} { mastersthesis } FUNCTION {proceedings} { "C" set.entry.mark @@ -2107,13 +2109,11 @@ FUNCTION {standard} misc } -FUNCTION {report} +FUNCTION {techreport} { "R" set.entry.mark misc } -FUNCTION {techreport} { report } - FUNCTION {unpublished} { misc } FUNCTION {default.type} { misc } diff --git a/bibstyle/thuthesis-bachelor.bst b/bibstyle/thuthesis-bachelor.bst index 67e1f7e..aea8c15 100644 --- a/bibstyle/thuthesis-bachelor.bst +++ b/bibstyle/thuthesis-bachelor.bst @@ -1304,7 +1304,7 @@ FUNCTION {extract.after.slash} 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 {format.periodical.year.volume.number} FUNCTION {check.url} { url empty$ not - { "\url{" url * "}" * 'entry.url := + { url 'entry.url := #1 'entry.is.electronic := } { howpublished empty$ not @@ -1515,7 +1515,11 @@ FUNCTION {output.url} { 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 @@ FUNCTION {is.in.url} { 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 {map} FUNCTION {manual} { monograph } -FUNCTION {thesis} +FUNCTION {mastersthesis} { "D" set.entry.mark monograph } @@ -2078,9 +2082,7 @@ FUNCTION {online} electronic } -FUNCTION {mastersthesis} { thesis } - -FUNCTION {phdthesis} { thesis } +FUNCTION {phdthesis} { mastersthesis } FUNCTION {proceedings} { "C" set.entry.mark @@ -2097,13 +2099,11 @@ FUNCTION {standard} misc } -FUNCTION {report} +FUNCTION {techreport} { "R" set.entry.mark misc } -FUNCTION {techreport} { report } - FUNCTION {unpublished} { misc } FUNCTION {default.type} { misc } diff --git a/bibstyle/thuthesis-numeric.bst b/bibstyle/thuthesis-numeric.bst index b27da61..6d24c44 100644 --- a/bibstyle/thuthesis-numeric.bst +++ b/bibstyle/thuthesis-numeric.bst @@ -1304,7 +1304,7 @@ FUNCTION {extract.after.slash} 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 {format.periodical.year.volume.number} FUNCTION {check.url} { url empty$ not - { "\url{" url * "}" * 'entry.url := + { url 'entry.url := #1 'entry.is.electronic := } { howpublished empty$ not @@ -1515,7 +1515,11 @@ FUNCTION {output.url} { 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 @@ FUNCTION {is.in.url} { 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 {map} FUNCTION {manual} { monograph } -FUNCTION {thesis} +FUNCTION {mastersthesis} { "D" set.entry.mark monograph } @@ -2078,9 +2082,7 @@ FUNCTION {online} electronic } -FUNCTION {mastersthesis} { thesis } - -FUNCTION {phdthesis} { thesis } +FUNCTION {phdthesis} { mastersthesis } FUNCTION {proceedings} { "C" set.entry.mark @@ -2097,13 +2099,11 @@ FUNCTION {standard} misc } -FUNCTION {report} +FUNCTION {techreport} { "R" set.entry.mark misc } -FUNCTION {techreport} { report } - FUNCTION {unpublished} { misc } FUNCTION {default.type} { misc } diff --git a/sudathesis.cls b/sudathesis.cls index 936b30c..a136372 100644 --- a/sudathesis.cls +++ b/sudathesis.cls @@ -4,7 +4,7 @@ %% @Description : %% @Email : shadowofgost@outlook.com %% @FilePath : /sudathesis-soochow-university-latex-template/sudathesis.cls -%% @LastTime : 2024-05-04 18:53:42 +%% @LastTime : 2024-05-21 23:40:26 %% @LastAuthor : Albert Wang %% @Software : Vscode %% @ Copyright Notice : Copyright (c) 2023 Albert Wang 王子睿, All Rights Reserved. @@ -2031,10 +2031,12 @@ subsection = { name = {,、}, number = \chinese{subsection}, + aftername = {}, }, subsubsection = { name = {(,)}, number = \chinese{subsubsection}, + aftername = {}, }, }% \fi @@ -2851,6 +2853,7 @@ } \thu@set@student@id \thu@option@hook{thesis-type}{\thu@set@student@id} +\thu@option@hook{student-id}{\thu@set@student@id} \newcommand\thu@titlepage@secret{% \sffamily\sanhao \ifx\thu@secret@level\@empty