babel 在 biblatex 引文中插入空格

babel 在 biblatex 引文中插入空格

我有一份主要用德语撰写的文档。因此,将设置ngerman为文档的主要语言babel是理所当然的事情。

然而,在引用的 100 多篇文章中,只有大约 5 篇是德语文章,并发表在德国期刊上,而绝大多数文章都发表在美国或英国期刊上。因此,将少数德语条目设置american为主要语言biblatex并使用是有意义的langid = {ngerman}。以下是 MWE:

\documentclass[american,ngerman]{scrreprt}

\usepackage{filecontents}
\begin{filecontents}{test.bib}
@ARTICLE{pollack.2015,
    author = {Ari Pollack and Bibhu D. Mohanty and Rishi Handa and Patrick M. Looser and Valentin Fuster and Spencer B. King and Samin K. Sharma},
    title = {Preventive Stenting in Acute Myocardial Infarction},
    date = {2015},
    }

@ARTICLE{white.2014,
    author = {Harvey White and Kristian Thygesen and Joseph S. Alpert and Allan Jaffe},
    title = {Universal {MI} Definition Update for Cardiovascular Disease},
    date = {2014},
    }

@ARTICLE{green,
    author = {Herbert Grün},
    title = {Ein Artikel},
    date = {2016},
    langid = {ngerman}
}
\end{filecontents}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{babel}

\usepackage[backend=biber,style=nejm]{biblatex}

\ExecuteBibliographyOptions{%
    language=american,
    autolang=other}

\addbibresource{test.bib}

\begin{document}
\chapter{Test}
Hier steht viel Text auf Deutsch und es gibt auch eine deutsche Quelle \parencite{green}. Die meisten zitierten Werke sind aber Englisch geschrieben, so etwa \textcites{pollack.2015,white.2014}.

\printbibliography{}
\end{document}

显然,biblatexbabel不能很好地协同工作。虽然参考书目中的一切看起来都很好,但引用却乱七八糟:

引文混乱

如果我注释掉该行language=american,一切看起来都如预期的那样: 在此处输入图片描述

我尝试使用不同的参考书目/引文样式编译文档,既在 biblatex.cfg 中设置了选项,也未设置选项——但除了注释掉语言设置外,其他都没有任何效果。因此,很明显,这肯定与 babel 不兼容。有什么建议我可以做什么吗?

编辑——添加了由以下人员生成的文件列表\listfiles

 *File List*
scrreprt.cls    2016/06/14 v3.21 KOMA-Script document class (report)
scrkbase.sty    2016/06/14 v3.21 KOMA-Script package (KOMA-Script-dependent bas
ics and keyval usage)
 scrbase.sty    2016/06/14 v3.21 KOMA-Script package (KOMA-Script-independent b
asics and keyval usage)
  keyval.sty    2014/10/28 v1.15 key=value parser (DPC)
scrlfile.sty    2016/06/14 v3.21 KOMA-Script package (loading files)
tocbasic.sty    2016/06/14 v3.21 KOMA-Script package (handling toc-files)
scrsize11pt.clo    2016/06/14 v3.21 KOMA-Script font size class option (11pt)
typearea.sty    2016/06/14 v3.21 KOMA-Script package (type area)
filecontents.sty    2011/10/08 v1.3 Create an external file from within a LaTeX
 document
inputenc.sty    2015/03/17 v1.2c Input encoding file
    utf8.def    2016/02/28 v1.1s UTF-8 support for inputenc
   t1enc.dfu    2016/02/28 v1.1s UTF-8 support for inputenc
  ot1enc.dfu    2016/02/28 v1.1s UTF-8 support for inputenc
  omsenc.dfu    2016/02/28 v1.1s UTF-8 support for inputenc
 fontenc.sty
   t1enc.def    2016/06/19 v1.99m Standard LaTeX file
   babel.sty    2016/04/23 3.9r The Babel package
 english.ldf    2012/08/20 v3.3p English support from the babel system
 ngerman.ldf    2013/12/13 v2.7 German support for babel (new orthography)
biblatex.sty    2016/05/14 v3.4 programmable bibliographies (PK/JW/AB)
   iftex.sty    2013/04/04 v0.2 Provides if(tex) conditional for PDFTeX, XeTeX,
 and LuaTeX
pdftexcmds.sty    2016/05/21 v0.22 Utility functions of pdfTeX for LuaTeX (HO)
infwarerr.sty    2016/05/16 v1.4 Providing info/warning/error messages (HO)
ifluatex.sty    2016/05/16 v1.4 Provides the ifluatex switch (HO)
 ltxcmds.sty    2016/05/16 v1.23 LaTeX kernel commands for general use (HO)
   ifpdf.sty    2016/05/14 v3.1 Provides the ifpdf switch
etoolbox.sty    2015/08/02 v2.2a e-TeX tools for LaTeX (JAW)
kvoptions.sty    2016/05/16 v3.12 Key value format for package options (HO)
kvsetkeys.sty    2016/05/16 v1.17 Key value parser (HO)
etexcmds.sty    2016/05/16 v1.6 Avoid name clashes with e-TeX commands (HO)
  logreq.sty    2010/08/04 v1.0 xml request logger
  logreq.def    2010/08/04 v1.0 logreq spec v1.0
  ifthen.sty    2014/09/29 v1.1c Standard LaTeX ifthen package (DPC)
     url.sty    2013/09/16  ver 3.4  Verb mode for urls, etc.
 xstring.sty    2013/10/13  v1.7c  String manipulations (C Tellechea)
  blx-dm.def
    nejm.dbx
biblatex-dm.cfg
blx-compat.def    2016/05/14 v3.4 biblatex compatibility (PK/JW/AB)
biblatex.def    2016/05/14 v3.4 biblatex compatibility (PK/JW/AB)
standard.bbx    2016/05/14 v3.4 biblatex bibliography style (PK/JW/AB)
    nejm.bbx    2011/09/09  v0.4: nejm.cbx
numeric-comp.cbx    2016/05/14 v3.4 biblatex citation style (PK/JW/AB)
    nejm.cbx
biblatex.cfg
  german.lbx    2016/05/14 v3.4 biblatex localization (PK/JW/AB)
 ngerman.lbx    2016/05/14 v3.4 biblatex localization (PK/JW/AB)
 english.lbx    2016/05/14 v3.4 biblatex localization (PK/JW/AB)
american.lbx    2016/05/14 v3.4 biblatex localization (PK/JW/AB)
    test.bbl
  t1cmss.fd    2014/09/29 v2.5h Standard LaTeX font definitions
 ***********

相关内容