Biblatex 样式=作者年份更改

Biblatex 样式=作者年份更改

我的书目并不完美。我需要做一些修改。

现在:

穆斯特曼,汉斯(1994)。万维网。 URL: http:\\websiteisdown.tld\WoWiWe (2013 年 2 月 1 日发现)

更好的:

MUSTERMANN,Hans (1994):万维网。在线 http:\\websiteisdown.tld\WoWiWe,网址日期为 2013 年 2 月。

最小的例子:

    \documentclass[a4paper,titlepage]{scrartcl}

\usepackage[utf8]{inputenc}

\usepackage[T1]{fontenc}

\usepackage[ngerman]{babel} % lang new german

\usepackage[babel,german=quotes]{csquotes}

\usepackage[style=authoryear]{biblatex}
\bibliography{literaturdatenbank}
\DefineBibliographyStrings{ngerman}{
    references = {Q}
}
% Names
\renewcommand*{\mkbibnamelast}[1]{\textsc{#1}}

\usepackage{filecontents}
\begin{filecontents*}{literaturdatenbank.bib}
@online{ art:web,
  author = {Hans Mustermann},
  title = {The World Wide Web},
  year = {1994},
  url = {http:\\websiteisdown.tld\WoWiWe},
  urldate = {2013-02-01}
}
\end{filecontents*}  

\usepackage[toctextentriesindented]{tocstyle}

\usepackage{hyperref}
\begin{document}






\section{Example}
Content
\footcite[Vgl.][]{art:web}.


\printbibliography
\end{document}

我该如何解决这个问题?谢谢。

答案1

我希望这是您想要的结果。

enter image description here

为了实现它,请将以下字符串添加到ngerman

\DefineBibliographyStrings{ngerman}{
    references = {Q},
    urlseen = {Urldate is},
    url = {Online}
}

另外,重新定义urlurldate如下:

\DeclareFieldFormat{url}{\bibstring{url}\space\url{#1}\addcomma}
\DeclareFieldFormat{urldate}{\bibstring{urlseen}\space#1}

并添加行

\renewcommand*{\labelnamepunct}{\addcolon\space}

完成 MWE:

\documentclass[a4paper,titlepage]{scrartcl}

\usepackage[utf8]{inputenc}

\usepackage[T1]{fontenc}

\usepackage[ngerman]{babel} % lang new german

\usepackage[babel,german=quotes]{csquotes}

\usepackage[style=authoryear]{biblatex}
\bibliography{literaturdatenbank}
\DefineBibliographyStrings{ngerman}{
    references = {Q},
    urlseen = {Urldate is},
    url = {Online}
}
% Names
\renewcommand*{\mkbibnamelast}[1]{\textsc{#1}}
\renewcommand*{\labelnamepunct}{\addcolon\space}
\DeclareFieldFormat{url}{\bibstring{url}\space\url{#1}\addcomma}
\DeclareFieldFormat{urldate}{\bibstring{urlseen}\space#1}

\usepackage{filecontents}
\begin{filecontents*}{literaturdatenbank.bib}
@online{ art:web,
  author = {Hans Mustermann},
  title = {The World Wide Web},
  year = {1994},
  url = {http:\\websiteisdown.tld\WoWiWe},
  urldate = {2013-02-01}
}
\end{filecontents*}

\usepackage[toctextentriesindented]{tocstyle}

\usepackage{hyperref}
\begin{document}

\section{Example}
Content
\footcite[Vgl.][]{art:web}.

\printbibliography
\end{document} 

一些变体

\DeclareFieldFormat{url}{\textsc{\bibstring{url}}\space\url{#1}\addcomma}

你得到

enter image description here

同时

\DeclareFieldFormat{url}{\mkbibacro{\bibstring{url}}\space\url{#1}\addcomma}

你得到

enter image description here

相关内容