biblatex-chicago 中的翻译器名称——我做错了什么?

biblatex-chicago 中的翻译器名称——我做错了什么?

为这个问题奋斗了太久了。

这个(我找到的模板)有效:

\documentclass{article}
\usepackage[danish]{babel}
\usepackage[
    backend=biber
]{biblatex-chicago}
\DeclareLanguageMapping{danish}{cms-danish}
\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@Book{gardner1999,
  title =        "Den intelligente skole",
  subtitle =     "Gardner i praksis",
  author =       "Howard Gardner",
  date =         "1999",
  usere =    "Multiple Intelligenses",
  origdate =     "1993",
  origpubliser = "FooPub",
  origlocation = "USA",
  publisher =    "Gyldendal",
  origlanguage = "english",
  edition =      "1",
  translator =   "Strandberg, Kurt",
  location =     "Kbenhavn",
}
\end{filecontents}

\addbibresource{\jobname.bib}

\DefineBibliographyStrings{danish}{
      cbytranslator = {Oversataf}
}
\begin{document}
foo\footcite[1]{gardner1999}




\nocite{*}
\printbibliography
\end{document}

另一方面,我自己的文件没有:

\documentclass{article}
\usepackage[danish]{babel}
%\usepackage[utf8]{inputenc}
\usepackage[backend=biber]{biblatex-chicago}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}


@Book{gardner1999,
  title =        "Den intelligente skole",
  subtitle =     "Gardner i praksis",
  author =       "Howard Gardner",
  date =         "1999",
  usere =        "Multiple Intelligenses",
  origdate =     "1993",
  origlanguage = "english",
  publisher =    "Gyldendal",
  edition =      "1",
  translator = "Strandberg, Kurt",
  location =     "Kbenhavn",
}
\end{filecontents}

\addbibresource{\jobname.bib}

\begin{document}
Foo\footcite[1]{gardner1999}
\newpage
\nocite{*} %% vis alt i bibliografien
\printbibliography %% Historian 
\end{document}

它给了我错误:

 Package biblatex Warning: Bibliography string 'cbytranslator' undefined
(biblatex)                at entry 'gardner1999' on input line 34.

输出结果如下: 在此处输入图片描述

我似乎不知道问题出在哪里——我希望你们能帮忙!

答案1

目前biblatex-chicago没有附带丹麦语版本的文件(目前似乎支持英语、芬兰语、法语、德语、冰岛语和挪威语),因此其自定义 bib 字符串不为人所知biblatex

我们必须自己定义它们

\DefineBibliographyStrings{danish}{
      cbytranslator = {Oversataf}
}

但为了使它工作,我们biblatex首先需要告诉这个新的 bibstring

\NewBibliographyString{cbytranslator}

平均能量损失

\documentclass{article}
\usepackage[danish]{babel}
\usepackage[utf8]{inputenc}
\usepackage[backend=biber]{biblatex-chicago}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@Book{gardner1999,
  title =        "Den intelligente skole",
  subtitle =     "Gardner i praksis",
  author =       "Howard Gardner",
  date =         "1999",
  usere =        "Multiple Intelligenses",
  origdate =     "1993",
  origlanguage = "english",
  publisher =    "Gyldendal",
  edition =      "1",
  translator = "Strandberg, Kurt",
  location =     "Kbenhavn",
}
\end{filecontents}

\NewBibliographyString{cbytranslator}
\DefineBibliographyStrings{danish}{cbytranslator = {Oversat af}}

\addbibresource{\jobname.bib}

\begin{document}
Foo\footcite[1]{gardner1999}
\nocite{*} 
\printbibliography
\end{document}

在此处输入图片描述

当然,您可能会遇到补充文件中定义的其他众多 bibstring 问题lbx,而您仍然缺少这些 bibstring。因此,您真正想要的是 的丹麦语版本cms-american.lbx。如果存在这样的文件,您可以像在这个答案

相关内容