biblatex 中的名称分隔符

biblatex 中的名称分隔符

我想用“--”替换所有名称分隔符,因此它应该是“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}

Lorem(Sigfridsson – Ryde 1998)ipsum(Nussbaum 1978)dolor(Goossens – Mittelbach – Samarin 1994)sit(Aksın 等人 2006)Aksın,Özge 等人(2006 年)。《固定化对饱和 Pd-N-杂环卡宾在 Mizoroki-Heck 反应中催化特性的影响》。出自:J. Organomet. Chem. 691.13,第 3027-3036 页。Goossens,Michel – Frank Mittelbach – Alexander Samarin(1994 年)。《LaTeX 指南》。第 1 版。马萨诸塞州雷丁:Addison-Wesley。528 页。Nussbaum,Martha(1978 年)。亚里士多德的《动物运动论》。普林斯顿:普林斯顿大学出版社。Sigfridsson,Emma – Ulf Ryde (1998)。《从静电势和矩推导原子电荷的方法比较》。在:《计算化学杂志》19.4,第 377-395 页。doi:10.1002/(SICI)1096-987X(199803)19:4<377::AID-JCC1>3.0.CO;2-P。

为了改变参考书目

\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}

Lorem(Sigfridsson 和 Ryde 1998)ipsum(Nussbaum 1978)dolor(Goossens、Mittelbach 和 Samarin 1994)sit(Aksın 等人 2006)Aksın,Özge 等人(2006 年)。《固定化对 Mizoroki-Heck 反应中饱和 Pd-N-杂环卡宾催化特性的影响》。出自:J. Organomet. Chem. 691.13,第 3027-3036 页。Goossens,Michel – Frank Mittelbach – Alexander Samarin(1994 年)。《LaTeX 指南》。第一版。马萨诸塞州雷丁:Addison-Wesley。528 页。Nussbaum,Martha(1978 年)。亚里士多德的《动物运动论》。普林斯顿:普林斯顿大学出版社。Sigfridsson,Emma – Ulf Ryde (1998)。《从静电势和矩推导原子电荷的方法比较》。在:《计算化学杂志》19.4,第 377-395 页。doi:10.1002/(SICI)1096-987X(199803)19:4<377::AID-JCC1>3.0.CO;2-P。

对于引用,使用

\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}

Lorem(Sigfridsson – Ryde 1998)ipsum(Nussbaum 1978)dolor(Goossens – Mittelbach – Samarin 1994)sit(Aksın 等人 2006)Aksın,Özge 等人(2006 年)。《固定化对饱和 Pd-N-杂环卡宾在 Mizoroki-Heck 反应中催化特性的影响》。出自:J. Organomet. Chem. 691.13,第 3027-3036 页。Goossens, Michel、Frank Mittelbach 和 Alexander Samarin (1994)。《LaTeX 指南》。第一版。马萨诸塞州雷丁:Addison-Wesley。528 页。Nussbaum, Martha (1978)。亚里士多德的《动物运动论》。普林斯顿:普林斯顿大学出版社。Sigfridsson, Emma 和 Ulf Ryde (1998)。《从静电势和矩推导原子电荷的方法比较》。《计算化学杂志》19.4,第 377-395 页。doi:10.1002/(SICI)1096-987X(199803)19:4<377::AID-JCC1>3.0.CO;2-P。

如果你只想更改一个特定的引用命令,你可以使用与参考书目相同的策略

\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}

Lorem Sigfridsson – Ryde (1998) ipsum Nussbaum (1978) 伤痛 Goossens – Mittelbach – Samarin (1994) sit Aksın et al. (2006) Lorem (Sigfridsson and Ryde 1998) ipsum (Nussbaum 1978) 伤痛 (Goossens, Mittelbach and Samarin 1994) sit (Aksın et al. 2006)

相关内容