平均能量损失

平均能量损失

我花了几乎一整天的时间才弄清楚 natbib 可能不适合我的硕士论文。所以现在我终于转向了 Biblatex。然而,仍然有一些事情我无法弄清楚。我用 citavi 制作我的 bibfile。

  • 我将编辑器显示为“Hrsg. von {editor}”,并想将 @book 和 @booklets 的编辑器更改为“Hrsg.: {editor}”
  • 有没有办法打印互联网参考资料 (@booklets) 的 URLDATES?期望的输出为:{author} ({year})。{title}。Hrsg.:{editor}。{url}。上次访问:{urldate}

这是我的代码:

\documentclass{scrreprt}

\usepackage[style=authoryear, 
            natbib=true, 
            backend=biber, 
            maxcitenames=2,
            maxbibnames=9,
            uniquelist=false]{biblatex}
\addbibresource{Literatur_Citavi.bib} 
\usepackage{csquotes}
\usepackage[ngerman]{babel}     % German
\setlength\bibitemsep{.5\baselineskip}

% et al instead u.a.
\DefineBibliographyStrings{ngerman}{
   andothers = {{et\,al\adddot}},            
}

% Lastname, F.
\DeclareNameFormat{sortname}{%
   \usebibmacro{name:family-given}
   {\namepartfamily}
   {\namepartgiveni}
   {\namepartprefix}
   {\namepartsuffix}%
}%


% Comma between Journal and Volume
\renewbibmacro*{journal+issuetitle}{%
   \usebibmacro{journal}%
   \setunit*{\addcomma\addspace}%<--da
   \iffieldundef{series}
   {}
   {\newunit
      \printfield{series}%
      \setunit{\addspace}}%
   \usebibmacro{volume+number+eid}%
   \setunit{\addspace}%
   \usebibmacro{issue+date}%
   \setunit{\addcolon\space}%
   \usebibmacro{issue}%
   \newunit}




\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@booklet{copeland.,
 abstract = {Artificial intelligence, the ability of a computer or computer-controlled robot to perform tasks commonly associated with intelligent beings. The term is frequently applied to the project of developing systems with the ability to reason, discover meaning, generalize, or learn from past experiences.},
 author = {Copeland, B. J.},
 editor = {{Encyclopaedia Britannia}, Inc.},
 year = {2019},
 title = {Artificial Intelligence},
 howpublished = {\url{https://www.britannica.com/technology/artificial-intelligence}},
 urldate = {26.07.2019}
}


\end{filecontents}

\addbibresource{\jobname.bib}

\begin{document}


\printbibliography

\end{document}

在此处输入图片描述 如何将@books 和 @booklets 的编辑器字段的显示更改为“Hrsg.: {editor}”?

答案1

要将“Hrsg. von”更改为“Hrsg.:”,您需要重新定义字符串byeditor

urldate由于您使用了错误的格式,所以没有显示。中的日期字段需要biblatex采用 格式yyyy-mm-dd。输出格式由本地化设置决定。 的urldate默认格式为:

\DeclareFieldFormat{urldate}{\mkbibparens{\bibstring{urlseen}\space#1}}

因此,您可以重新定义它和/或重新定义urlseen字符串以匹配您的要求。

而且您可能还想editor = {{Encyclopaedia Britannia, Inc.}}避免 editor = {{Encyclopaedia Britannia}, Inc.}将“Inc.”视为姓氏。

平均能量损失

\documentclass{scrreprt}

\usepackage[style=authoryear, 
            natbib=true, 
            backend=biber, 
            maxcitenames=2,
            maxbibnames=9,
            uniquelist=false]{biblatex}
\usepackage{csquotes}
\usepackage[ngerman]{babel}     % German
\setlength\bibitemsep{.5\baselineskip}

% et al instead u.a.
\DefineBibliographyStrings{ngerman}{%
   andothers = {et\,al\adddot},
   byeditor  = {Hrsg\adddot\addcolon},
}

% Lastname, F.
\DeclareNameFormat{sortname}{%
   \usebibmacro{name:family-given}
   {\namepartfamily}
   {\namepartgiveni}
   {\namepartprefix}
   {\namepartsuffix}%
}%


% Comma between Journal and Volume
\renewbibmacro*{journal+issuetitle}{%
   \usebibmacro{journal}%
   \setunit*{\addcomma\addspace}%<--da
   \iffieldundef{series}
   {}
   {\newunit
      \printfield{series}%
      \setunit{\addspace}}%
   \usebibmacro{volume+number+eid}%
   \setunit{\addspace}%
   \usebibmacro{issue+date}%
   \setunit{\addcolon\space}%
   \usebibmacro{issue}%
   \newunit}




\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@booklet{copeland.,
 abstract = {Artificial intelligence, the ability of a computer or computer-controlled robot to perform tasks commonly associated with intelligent beings. The term is frequently applied to the project of developing systems with the ability to reason, discover meaning, generalize, or learn from past experiences.},
 author = {Copeland, B. J.},
 editor = {{Encyclopaedia Britannia, Inc.}},
 year = {2019},
 title = {Artificial Intelligence},
 howpublished = {\url{https://www.britannica.com/technology/artificial-intelligence}},
 urldate = {2019-07-26}
}


\end{filecontents}

\addbibresource{\jobname.bib}

\begin{document}
\nocite{*}

\printbibliography

\end{document}

MWE 输出

不管怎样,我会像这样设置你的 bib 条目:

@online{copeland2019,
  author = {Copeland, B. J.},
  title = {Artificial intelligence},
  eprinttype = {Encyclopædia Britannica},
  date = {2019-05-09},
  eprint = {https://www.britannica.com/technology/artificial-intelligence},
  urldate = {2019-08-29}
}
@online{aunkofer2019,
  author = {Aunkofer, Benjamin},
  title = {Machine Learning vs Deep Learning},
  subtitle = {Wo liegt der Unterschied?},
  eprinttype = {Data Science Blog},
  date = {2018-05-14},
  eprint = {https://data-science-blog.com/blog/2018/05/14/machine-learning-vs-deep-learning-wo-liegt-der-unterschied/},
  urldate = {2019-08-29}
}

相关内容