mohuangrui / ucasthesis

LaTeX Thesis Template for the University of Chinese Academy of Sciences
3.44k stars 926 forks source link

关于 \biband 不能输出 ”和“ 的问题 #410

Closed OceansDeep0219 closed 1 year ago

OceansDeep0219 commented 1 year ago

检查 / Check

编译环境 / Compilation Environment

描述问题 / Problem Description

问题描述: 在 ucasthesis 模板第9页的例子中,在中文环境下, 若使用 \citet*{betts2005aging} 输出为 Betts and Taylor (2005) 无法将 “and” 转换成中文的”和“ 若使用 \citet{betts2005aging} 输出为 Betts 等 (2005)

如何设置? 使用 \citet{betts2005aging} 这个命令输出类似 Betts 和 Taylor (2005)这样的结果.

期待您的回复,谢谢!

日志文件 / .log file

将编译生成的 .log 文件拖入下行空白处:

问题截图 / Screenshots

将出现的问题或需要实现的效果的 截图照片 拖入下行空白处:

最小工作示例(MWE) / Minimal Working Example

sikouhjw commented 1 year ago

初步认为问题在于 bst 文件

\providecommand{\biband}{和}
\bibitem[Betts {\bibetal}(2005)Betts and Taylor]{betts2005aging}
Betts~L~R, Taylor~C~P.
\newblock Aging reduces center-surround antagonism in visual motion processing
  [J].
\newblock Neuron, 2005, 45\penalty0 (3): 361-366.

发现并没有使用 \biband 命令

OceansDeep0219 commented 1 year ago

谢谢您的回复,我已经尝试将Biblio文件夹中的两个 .bst 文件中的 FUNCTION {bbl.and} { ”“ } 修改为 FUNCTION {bbl.and} { entry.lang lang.zh = { "和" } { entry.lang lang.ja = { "和" } { entry.lang lang.ru = { "идр" } { "and" } if$ } if$ } if$ } 但是这并不起作用,期待您的回复,谢谢.

sikouhjw commented 1 year ago

得请教下 @zepinglee 了

mohuangrui commented 1 year ago

另一种方案是使用 biblatex, 见 biblatex 启用

默认设定下,即可自动显示2个或以下的全部作者。

如果需要显示3个或更多,见 biblatex 样式设定

如设定为

mincitenames=1,maxcitenames=3
OceansDeep0219 commented 1 year ago

十分感谢您的回复,问题已解决,谢谢谢谢谢!

zepinglee commented 1 year ago

默认应该跟国标一样,两个以上姓名时只标注第一个著者的姓名,其后附“等”或“et al.”。

如果要显示“A 和 B”可以将这里改成 #3

https://github.com/mohuangrui/ucasthesis/blob/aec46ba1f621c537404cb631f54f6289b25a97af/Biblio/gbt7714-author-year.bst#L60

lss-len commented 1 month ago

3 'citation.et.al.min :=

lss-len commented 1 month ago

3 'citation.et.al.min :=使用这个命令解决了,谢谢啦