hushidong / biblatex-gb7714-2015

A biblatex implementation of the GB/T7714-2015 bibliography style || GB/T 7714-2015 参考文献著录和标注的biblatex样式包
763 stars 84 forks source link

用法:gbnamefmt=givenahead情况下拼音姓名中存在dash,hypen的处理 #161

Closed hushidong closed 1 year ago

hushidong commented 1 year ago

拼音姓名:

Zhang, Dawei 默认情况下英文名在前的缩写习惯处理是:D. Zhang Zhang, Da-Wei 默认情况下英文名在前的缩写习惯处理是:D.-W. Zhang.

在gb7714-2015样式中,因为考虑其它姓名处理格式的情况,第二种情况略有差别,默认为:D W. Zhang

如果要改回默认的习惯处理方式,则只要修改一下

\renewrobustcmd*{\bibinithyphendelim}{.\mbox{-}}

即可。

比如:

\documentclass{article}
\usepackage{ctex}

\begin{filecontents}[force]{\jobname.bib}

@thesis{zhang1,
author    = {Zhang, Dawei},
title     = {CGF建模方法与应用研究},
publisher = {科技大学},
date      = {2010},
}

@thesis{zhang2,
author    = {Zhang, Da-Wei},
title     = {CGF建模方法与应用研究},
publisher = {科技大学},
date      = {2010},
}

\end{filecontents}

\usepackage[style=gb7714-2015,gbnamefmt=givenahead]{biblatex} 
\addbibresource{\jobname}

\renewrobustcmd*{\bibinithyphendelim}{.\mbox{-}}

\begin{document}

text\nocite{*}

\printbibliography

\end{document} 

结果为:

图片