使用 biblatex 设置 [frenchb]{babel} 可将作者姓名改为小写。如何恢复首字母大写?

使用 biblatex 设置 [frenchb]{babel} 可将作者姓名改为小写。如何恢复首字母大写?

当使用 biblatex 和 bbel 中的 frenchb 时,作者姓名的大写方式让我感到困惑。两个文档中都没有提到这种行为,我不知道如何让作者姓名以“英语”风格显示。以下是 MWE:

\documentclass[a4,11pt]{article}
\PassOptionsToPackage{utf8}{inputenc}
\usepackage{inputenc}
\input{glyphtounicode}   %  to enable ligatured letters
\PassOptionsToPackage{T1}{fontenc} % T2A for cyrillics
    \usepackage{fontenc}

\PassOptionsToPackage{frenchb,english}{babel}
    \usepackage{babel}
%\PassOptionsToPackage{frenchpro}{babel} % inopérant

\frenchbsetup{LowercaseSuperscripts=false}
\usepackage{csquotes}
\PassOptionsToPackage{%
    %backend=biber, %instead of bibtex
    backend=bibtex8,bibencoding=ascii,%
    %language=autobib,%
    language=auto,
    %language=french,
    %autocite=inline,
    %style=numeric-comp,%
    style=authoryear-comp, % Author 1999, 2010
    %style=authoryear,%
    %style=alphabetic,%
    %bibstyle=authoryear,dashed=false, % dashed: substitute rep. author with ---
    sorting=nyt, % name, year, title
    maxbibnames=3, % default: 3, et al.
    backref=true,%
    hyperref=true,
    natbib=true % natbib compatibility mode (\citep and \citet still     work)
}{biblatex}
    \usepackage{biblatex}
%\addbibresource{../Xbib.bib}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@Article{abr4,
  Title                    = {Bargaining, reputation and equilibrium     selection in repeated games with contracts},
  Author                   = {Dilip Abreu and David Pearce},
  Journal                  = {Econometrica},
  Year                     = {2007},
  Number                   = {3},
  Pages                    = {653-710},
  Volume                   = {75},
}
@InBook{bar3,
   Title                    = {Mathematical theory of reliability},
  Author                   = {Richard E. Barlow and Frank Proschan},
  Chapter                  = {1},
  Pages                    = {9-18},
  Publisher                = {{J}ohn {W}iley \& {S}ons},
  Year                     = {1965}
 }
\end{filecontents}

\addbibresource{\jobname.bib}



\begin{document}
\selectlanguage{french} % if commented, authors appear with only first letter capitalized
\section{First section}
  This is a document.
  I cite a book here: \cite{bar3}. An article here:\cite{abr4}.

  \printbibliography 
 \end{document}

注释掉“selectlanguage=french”后,可以看到名字的首字母大写:Barlow 和 Proschan。将 selectlanguage 设置为 french 后,我们得到 BARLOW、Richard E. 和 Franck PROSCHAN。

如果大写字母只出现在参考文献部分,那就没问题了。但我觉得文本中的作者姓名也以大写字母出现很尴尬。有什么解决办法吗?谢谢。

答案1

是的!这纠正了这种明显的法语怪癖,即即使在括号内引用作者姓名时也要将作者姓名大写。因此,在加载 biblatex 后添加到序言中的正确命令是:

\DefineBibliographyExtras{french}{\renewcommand*\mkbibnamelast[1]{#1}}

相关内容