From 66e95cff5c9d012ede4846d53248bee0f54ab588 Mon Sep 17 00:00:00 2001 From: Zeping Lee Date: Thu, 16 May 2024 20:23:18 +0800 Subject: [PATCH] Fix length of url prefix --- thuthesis-author-year.bst | 13 ++++--------- thuthesis-bachelor.bst | 13 ++++--------- thuthesis-numeric.bst | 13 ++++--------- 3 files changed, 12 insertions(+), 27 deletions(-) diff --git a/thuthesis-author-year.bst b/thuthesis-author-year.bst index c89756de..03d02861 100644 --- a/thuthesis-author-year.bst +++ b/thuthesis-author-year.bst @@ -602,17 +602,12 @@ FUNCTION {format.name} { bbl.et.al } { t get.str.lang 'name.lang := name.lang lang.en = - { t #1 "{vv~}{ll}" format.name$ + { t #1 "{vv~}{ll}{ f{~}}" format.name$ uppercase.name - { t #1 #1 substring$ "{" = - t #1 "{ff}" format.name$ empty$ not and - { "\MakeUppercase{" swap$ * "}" * } - { "u" change.case$ } - if$ - } + { "u" change.case$ } 'skip$ if$ - t #1 "{ f{~}}{, jj}" format.name$ * + t #1 "{, jj}" format.name$ * } { t #1 "{ll}{ff}" format.name$ } if$ @@ -1530,7 +1525,7 @@ FUNCTION {output.url} { show.url is.pure.electronic or entry.url empty$ not and { new.block - entry.url #1 #4 substring$ "\url{" = + entry.url #1 #5 substring$ "\url{" = { entry.url } { "\url{" entry.url * "}" * } if$ diff --git a/thuthesis-bachelor.bst b/thuthesis-bachelor.bst index 89621b54..aea8c151 100644 --- a/thuthesis-bachelor.bst +++ b/thuthesis-bachelor.bst @@ -592,17 +592,12 @@ FUNCTION {format.name} { bbl.et.al } { t get.str.lang 'name.lang := name.lang lang.en = - { t #1 "{vv~}{ll}" format.name$ + { t #1 "{vv~}{ll}{ f{~}}" format.name$ uppercase.name - { t #1 #1 substring$ "{" = - t #1 "{ff}" format.name$ empty$ not and - { "\MakeUppercase{" swap$ * "}" * } - { "u" change.case$ } - if$ - } + { "u" change.case$ } 'skip$ if$ - t #1 "{ f{~}}{, jj}" format.name$ * + t #1 "{, jj}" format.name$ * } { t #1 "{ll}{ff}" format.name$ } if$ @@ -1520,7 +1515,7 @@ FUNCTION {output.url} { show.url is.pure.electronic or entry.url empty$ not and { new.block - entry.url #1 #4 substring$ "\url{" = + entry.url #1 #5 substring$ "\url{" = { entry.url } { "\url{" entry.url * "}" * } if$ diff --git a/thuthesis-numeric.bst b/thuthesis-numeric.bst index 83329640a..6d24c446 100644 --- a/thuthesis-numeric.bst +++ b/thuthesis-numeric.bst @@ -592,17 +592,12 @@ FUNCTION {format.name} { bbl.et.al } { t get.str.lang 'name.lang := name.lang lang.en = - { t #1 "{vv~}{ll}" format.name$ + { t #1 "{vv~}{ll}{ f{~}}" format.name$ uppercase.name - { t #1 #1 substring$ "{" = - t #1 "{ff}" format.name$ empty$ not and - { "\MakeUppercase{" swap$ * "}" * } - { "u" change.case$ } - if$ - } + { "u" change.case$ } 'skip$ if$ - t #1 "{ f{~}}{, jj}" format.name$ * + t #1 "{, jj}" format.name$ * } { t #1 "{ll}{ff}" format.name$ } if$ @@ -1520,7 +1515,7 @@ FUNCTION {output.url} { show.url is.pure.electronic or entry.url empty$ not and { new.block - entry.url #1 #4 substring$ "\url{" = + entry.url #1 #5 substring$ "\url{" = { entry.url } { "\url{" entry.url * "}" * } if$