我想用“--”替换所有名称分隔符,因此它应该是“Author1 -- Author2 -- Author3”,而不是“Author1, Author2 and Author3”。
目前我正在使用这个代码:
\usepackage[citestyle=authoryear-comp,bibstyle=authortitle,sorting=nyt,dashed=false,%
maxcitenames=2]{biblatex}
\newcounter{mymaxcitenames}
\AtBeginDocument{%
\setcounter{mymaxcitenames}{\value{maxnames}}%
}
\renewbibmacro*{begentry}{%
\printtext[brackets]{%
\begingroup
\defcounter{maxnames}{\value{mymaxcitenames}}%
\printnames{labelname}%
\setunit{\nameyeardelim}%
\usebibmacro{cite:labelyear+extrayear}%
\endgroup
}%
\quad% or \addspace
}
我希望有人可以帮助我——我正在尝试获取符合德国考古研究所(DAI)规则的参考书目。
答案1
例如,要将引文和参考书目的分隔符更改为破折号,请在序言中添加以下内容:
\renewcommand*{\multinamedelim}{~--\space}
\renewcommand*{\finalnamedelim}{~--\space}
仅在参考书目中更改分隔符的序言代码:
\AtBeginBibliography{%
\renewcommand*{\multinamedelim}{~--\space}%
\renewcommand*{\finalnamedelim}{~--\space}%
}
仅用于更改引用分隔符的序言代码:
\let\oldmultinamedelim\multinamedelim
\let\oldfinalnamedelim\finalnamedelim
\renewcommand*{\multinamedelim}{~--\space}
\renewcommand*{\finalnamedelim}{~--\space}
\AtBeginBibliography{%
\renewcommand*{\multinamedelim}{\oldmultinamedelim}%
\renewcommand*{\finalnamedelim}{\oldfinalnamedelim}%
}
答案2
我建议使用 biblatex 风格archaeologie
其中涵盖了德国考古研究所 (Deutsches Archäologisches Institut) 的引用规则。
此外,您还可以用这种风格引用古代作品。
考虑一下这个MWE:
\documentclass[ngerman]{scrbook}
\usepackage{babel}
\usepackage{libertine}
\usepackage{csquotes}
\usepackage[
backend=biber,
style=archaeologie,
lstpublishers,
lstabbrv,
width=6em,
]{biblatex}
\addbibresource{archaeologie-examples.bib}
\begin{document}
\nocite{Cosa1949,Evangelidis2014,Mastrocinque2012,Mann2011,Fentress2003}
\printbibliography
\end{document}
这些书目条目:
@Article{Cosa1949,
title = {Cosa},
subtitle = {Republican Colony in Etruria},
journaltitle = ClJ,
shortjournal = ClJ-short,
volume = {45},
pages = {141--149},
year = {1949},
label = {Cosa},
number = {1},
}
@Article{Evangelidis2014,
author = {Evangelidis, Vasilis},
title = {Agoras {and} Fora},
subtitle = {Developments in the Central Public Space of the Cities of Greece during the {Roman} Period},
journaltitle = BSA,
shortjournal = BSA-short,
volume = {109},
pages = {335--356},
year = {2014},
doi = {10.1017/s006824541400015x},
}
@Article{Mastrocinque2012,
author = {Mastrocinque, Attilio and Saggioro, Fabio},
title = {Magnetometry at Grumentum in Ancient Lucania},
pages = {1--5},
year = {2012},
url = {www.fastionline.org/docs/FOLDER-it-2012-245.pdf},
urldate = {2015-07-21},
journal = {The Journal of Fasti Online},
}
@Book{Mann2011,
author = {Mann, Christian},
title = {\enquote{Um keinen Kranz, um das Leben kämpfen wir!}},
subtitle = {Gladiatoren im Osten des Römischen Reiches und die Frage der Romanisierung},
publisher = {Verlag Antike},
location = Berlin,
year = {2011},
series = {Studien zur Alten Geschichte},
number = {14},
}
@Incollection{Fentress2003,
author = {Fentress, Elizabeth and John Bodel and Adam Rabinowitz and Rabun Taylor},
title = {Cosa in the Republic and Early Empire},
pages = {13--62},
editor = {Fentress, Elizabeth},
booktitle = {An Intermittent Town},
booksubtitle = {Excavations 1991--1997},
publisher = UMP,
location = {Ann Arbor, Mich.},
year = {2003},
volume = {V},
series = MemAmAc,
number = {2},
maintitle = {Cosa},
shortseries = MemAmAc-short,
}
结果如下:
答案3
步调一致的回答仍然有效,但是现在有了上下文相关的分隔符界面,事情变得更容易一些。
为了改变引文的分隔符和参考书目使用
\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[backend=biber, style=authoryear-comp]{biblatex}
\DeclareDelimFormat{multinamedelim}{\addnbspace--\space}
\DeclareDelimAlias{finalnamedelim}{multinamedelim}
\addbibresource{biblatex-examples.bib}
\begin{document}
Lorem \autocite{sigfridsson}
ipsum \autocite{nussbaum}
dolor \autocite{companion}
sit \autocite{aksin}
\printbibliography
\end{document}
为了改变参考书目
\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[backend=biber, style=authoryear-comp]{biblatex}
\DeclareDelimFormat[bib]{multinamedelim}{\addnbspace--\space}
\DeclareDelimAlias[bib]{finalnamedelim}{multinamedelim}
\addbibresource{biblatex-examples.bib}
\begin{document}
Lorem \autocite{sigfridsson}
ipsum \autocite{nussbaum}
dolor \autocite{companion}
sit \autocite{aksin}
\printbibliography
\end{document}
对于引用,使用
\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[backend=biber, style=authoryear-comp]{biblatex}
\DeclareDelimFormat{multinamedelim}{\addnbspace--\space}
\DeclareDelimAlias{finalnamedelim}{multinamedelim}
\DeclareDelimFormat[bib]{multinamedelim}{\addcomma\space}
\DeclareDelimFormat[bib]{finalnamedelim}{%
\ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}%
\addspace\bibstring{and}\space}
\addbibresource{biblatex-examples.bib}
\begin{document}
Lorem \autocite{sigfridsson}
ipsum \autocite{nussbaum}
dolor \autocite{companion}
sit \autocite{aksin}
\printbibliography
\end{document}
如果你只想更改一个特定的引用命令,你可以使用与参考书目相同的策略
\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[backend=biber, style=authoryear-comp]{biblatex}
\DeclareDelimFormat[textcite]{multinamedelim}{\addnbspace--\space}
\DeclareDelimAlias[textcite]{finalnamedelim}{multinamedelim}
\addbibresource{biblatex-examples.bib}
\begin{document}
Lorem \textcite{sigfridsson}
ipsum \textcite{nussbaum}
dolor \textcite{companion}
sit \textcite{aksin}
Lorem \autocite{sigfridsson}
ipsum \autocite{nussbaum}
dolor \autocite{companion}
sit \autocite{aksin}
\printbibliography
\end{document}