
大学のガイドラインに従って学士論文の参考文献リストをフォーマットする必要があります。私の文書では、biblatex と biber を使用しています。現在、次のようになっています: (MWE)
\documentclass{article}
%
% biblatex, biber
%
\usepackage[backend=biber, style=authoryear, doi=false, natbib=true, maxcitenames=2, maxbibnames=15, firstinits=true]{biblatex}
\addbibresource{Literatur.bib}
\setlength\bibitemsep{1.8\itemsep}
\renewcommand{\cite}{\parencite}
\DeclareNameAlias{author}{last-first}
\DefineBibliographyStrings{ngerman}{andothers = {et al\adddot}}
\DeclareDelimFormat[parencite]{nameyeardelim}{\addspace}
\DeclareFieldFormat{journaltitle}{#1}
\DeclareFieldFormat{booktitle}{#1}
\DeclareFieldFormat*{title}{#1}
\DeclareDelimFormat{yeartitledelim}{\addcomma\addspace}
\setlength{\bibhang}{0pt}
\usepackage{xpatch}
\xpatchbibmacro{date+extradate}{%
\printtext[parens]%
}{%
\setunit*{\addcomma\space}%
\printtext%
}{}{}
\DefineBibliographyExtras{ngerman}{
\renewcommand*{\finalnamedelim}{\addcomma\addspace}
}
\renewbibmacro*{publisher+location+date}{
\printlist{publisher}
\setunit*{\addcomma\space}
\printlist{location}
\setunit*{\addcomma\space}
\usebibmacro{date}
\newunit
}
\begin{document}
\noindent test \cite{RolfFischer}
\printbibliography
\end{document}
次のゼッケンエントリー:
@book{RolfFischer,
author ={Fischer, Rolf},
title ={Elektrische Maschinen},
publisher ={Carl Hanser Verlag},
address ={{M{\"u}nchen}},
year ={2011},
isbn ={978-3-446-42554-5},
}
ただし、年号の後にコンマが必要です: Fischer, R., 2011, Elektrische Maschinen. Carl Hanser など
どうすればこれを実現できるでしょうか?
答え1
ここで関連する区切り文字はnametitledelim
(bib
文脈内) です。(これは、年が著者の後の位置に移動されない他のすべての参考文献スタイルとの一貫性を保つためのもので、したがって、この区切り文字は名前とタイトルの間に表示され、この場合のように名前の後の年とタイトルの間には表示されません。標準スタイルにはyeartitledelim
存在しません。)
\documentclass{article}
\usepackage[
backend=biber,
style=authoryear,
maxcitenames=2, maxbibnames=15, firstinits=true,
doi=false,
natbib=true,
]{biblatex}
\setlength\bibitemsep{1.8\itemsep}
\setlength{\bibhang}{0pt}
\DefineBibliographyStrings{ngerman}{andothers = {et al\adddot}}
\DeclareNameAlias{sortname}{family-given}
\DeclareDelimFormat{finalnamedelim}{\addcomma\space}
\DeclareDelimFormat[bib]{nametitledelim}{\addcomma\addspace}
\DeclareDelimFormat[parencite]{nameyeardelim}{\addspace}
\DeclareFieldFormat{journaltitle}{#1}
\DeclareFieldFormat{booktitle}{#1}
\DeclareFieldFormat*{title}{#1}
\usepackage{xpatch}
\xpatchbibmacro{date+extradate}{%
\printtext[parens]%
}{%
\setunit*{\addcomma\space}%
\printtext%
}{}{}
\renewbibmacro*{publisher+location+date}{%
\printlist{publisher}%
\setunit*{\addcomma\space}%
\printlist{location}%
\setunit*{\addcomma\space}%
\usebibmacro{date}%
\newunit
}
\begin{filecontents}[overwrite]{\jobname.bib}
@book{RolfFischer,
author = {Fischer, Rolf},
title = {Elektrische Maschinen},
publisher = {Carl Hanser Verlag},
address = {München},
year = {2011},
isbn = {978-3-446-42554-5},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
test \autocite{RolfFischer}
\printbibliography
\end{document}