![平均能量损失](https://linux22.com/image/400949/%E5%B9%B3%E5%9D%87%E8%83%BD%E9%87%8F%E6%8D%9F%E5%A4%B1.png)
我花了几乎一整天的时间才弄清楚 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}
答案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}
不管怎样,我会像这样设置你的 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}
}