ustctug / ustcthesis

LaTeX template for USTC thesis
https://gradschool.ustc.edu.cn/column/65
LaTeX Project Public License v1.3c
1.6k stars 396 forks source link

修改#1 'uppercase.name := 为 #0后,参考文献列表作者名仍全大写 #377

Closed zzhli closed 1 year ago

zzhli commented 1 year ago

检查

编译环境

描述问题

已经参考常见问题在ustcthesis-authoryear.bst文件中将 load.config 函数中的 #1 'uppercase.name := 改为 #0,参考文献列表中作者名仍全部大写。

截图: image image

sikouhjw commented 1 year ago

清除所有辅助文件(.aux, .log, .bbl 等)后,再重新编译,是否还是全大写?

zepinglee commented 1 year ago

给出浮现问题的 .bib 代码。

zzhli commented 1 year ago

清除所有辅助文件(.aux, .log, .bbl 等)后,再重新编译,是否还是全大写?

是的,清除所有辅助文件重新编译后问题仍在。

zzhli commented 1 year ago

给出浮现问题的 .bib 代码。

thesis0809_minimal.zip

这里给出了在我的配置下能复现此问题的最小环境。 系统:Windows 11 编辑器:VS Code v1.81.0 + Latex Workshop v9.13.4 TeX环境:Tex Live 2023 排版引擎:XeLatex和luaLatex下都能复现此问题

stone-zeng commented 1 year ago

这个代码用的是 biblatex……

ustcsetup.tex 里面

\usepackage[style=ustcthesis-authoryear,eprint=false,doi=false]{biblatex}
\addbibresource{bib/ustc.bib}

注释掉,再把

% \usepackage[sort]{natbib}
% \bibliographystyle{ustcthesis-numerical}

取消注释。main.tex 里面 \printbibliography 也要换成 \bibliography{bib/ustc}

zzhli commented 1 year ago

这个代码用的是 biblatex……

ustcsetup.tex 里面

\usepackage[style=ustcthesis-authoryear,eprint=false,doi=false]{biblatex}
\addbibresource{bib/ustc.bib}

注释掉,再把

% \usepackage[sort]{natbib}
% \bibliographystyle{ustcthesis-numerical}

取消注释。main.tex 里面 \printbibliography 也要换成 \bibliography{bib/ustc}

是的,但我的目的就是使用biblatex,有没有使用biblatex的同时调整作者名不要全部大写的方法呢? 要补充一条信息:使用biblatex但将引用格式设置为bachelor时,引用列表中作者名只会首字母大写。是不是ustcthesis-bachelor.bst中的

#0 'uppercase.name :=

生效了?但我在ustcthesis-authoryear.bstustcthesis-numerical.bst中做出这样的修改时则不起作用。

zepinglee commented 1 year ago

这个代码用的是 biblatex…… 把 ustcsetup.tex 里面

\usepackage[style=ustcthesis-authoryear,eprint=false,doi=false]{biblatex}
\addbibresource{bib/ustc.bib}

注释掉,再把

% \usepackage[sort]{natbib}
% \bibliographystyle{ustcthesis-numerical}

取消注释。main.tex 里面 \printbibliography 也要换成 \bibliography{bib/ustc}

是的,但我的目的就是使用biblatex,有没有使用biblatex的同时调整作者名不要全部大写的方法呢? 要补充一条信息:使用biblatex但将引用格式设置为bachelor时,引用列表中作者名只会首字母大写。是不是ustcthesis-bachelor.bst中的

#0 'uppercase.name :=

生效了?但我在ustcthesis-authoryear.bstustcthesis-numerical.bst中做出这样的修改时则不起作用。

biblatex 的用法参考 texdoc biblatex-gb7714-2015

.bst 文件是 BibTeX 的,跟 biblatex 无关。

zzhli commented 1 year ago

这个代码用的是 biblatex…… 把 ustcsetup.tex 里面

\usepackage[style=ustcthesis-authoryear,eprint=false,doi=false]{biblatex}
\addbibresource{bib/ustc.bib}

注释掉,再把

% \usepackage[sort]{natbib}
% \bibliographystyle{ustcthesis-numerical}

取消注释。main.tex 里面 \printbibliography 也要换成 \bibliography{bib/ustc}

是的,但我的目的就是使用biblatex,有没有使用biblatex的同时调整作者名不要全部大写的方法呢? 要补充一条信息:使用biblatex但将引用格式设置为bachelor时,引用列表中作者名只会首字母大写。是不是ustcthesis-bachelor.bst中的

#0 'uppercase.name :=

生效了?但我在ustcthesis-authoryear.bstustcthesis-numerical.bst中做出这样的修改时则不起作用。

biblatex 的用法参考 texdoc biblatex-gb7714-2015

.bst 文件是 BibTeX 的,跟 biblatex 无关。

了解,多谢解答!

zzhli commented 1 year ago

👍

sunlover1995 commented 5 months ago

如果使用的是biblatex,可修改ustcthesis-authoryear.bbx \ProvidesFile{ustcthesis-authoryear.bbx}[2021/01/19 v1.0 USTCThesis biblatex bibliography style]

\RequireBibliographyStyle{gb7714-2015ay}

\ExecuteBibliographyOptions{ gbnamefmt = lowercase, gbpub = false}