提供 DOI 后未打印出版商和位置

提供 DOI 后未打印出版商和位置

我正在使用 biblatex 撰写一篇使用 APA 6th 引用样式的论文。但是,当我尝试使用 DOI 引用一本书时位置/出版商,仅打印 DOI。

这是我的代码:

%Dokumentenkopf
\documentclass[
    paper=A4,
    pagesize=auto
    12pt,
    ngerman,
    usegeometry,
    oneside,
    headinclude=false,
    footinclude=true,
    BCOR=0mm,
    DIV=calc,
    parskip=onehalf,
    bibliography=totocnumbered,
]{scrreprt}

%UTF8 und T1 Fontencoding
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

%Schriftart und Stil
\usepackage{libertine}
\usepackage{libertinust1math}

%Pakete
\usepackage[ngerman]{babel}
\usepackage{scrlayer}
\usepackage{graphicx}
\usepackage[backend=biber,style=apa6,apamaxprtauth=5]{biblatex}
\usepackage{csquotes}
\usepackage[left=25mm, right=35mm, top=20mm, bottom=20mm]{geometry}
\usepackage{wrapfig}
\usepackage[printonlyused, smaller]{acronym}
\usepackage[onehalfspacing]{setspace}
\usepackage{xurl}
\usepackage[section=chapter, numberedsection=false, acronym, nonumberlist]{glossaries}

\begin{filecontents}{oekonomie.bib}
@book{El-Richani2016,
    author = {given=Sarah, family=El-Richani},
    doi = {10.1057/978-1-137-60183-4},
    edition = {},
    language = {english},
    location = {New York},
    publisher = {Palgrave Macmillan},
    subtitle = {Anatomy of a System in Perpetual Crisis},
    title = {The Lebanese Media},
    year = {2016},
}
@book{Fuchs2021,
    author = {given=Christian, family=Fuchs},
    doi = {10.36198/9783838555003},
    edition = {2., vollständig überarbeitete Auflage},
    language = {ngerman},
    location = {Tübingen},
    publisher = {UVK Verlag},
    subtitle = {Eine Einführung},
    title = {Soziale Medien und die Kritische Theorie},
    year = {2021},
}
\end{filecontents}

\makenoidxglossaries

%Einbindung
\addbibresource{oekonomie.bib}
\input{siglen.tex}

\begin{document}
\cite{Fuchs2021} und \cite{El-Richani2016} belegen, dass...

\printbibliography

\end{document

它看起来像这样:

来源1 来源2

我该如何改变它,以便当来源打印 DOI 时不再省略位置和发布者?

答案1

location+publisherbibmacro的定义apa6.bbx如果给出了,则有一个保护,不打印任何内容doi。可以按如下方式删除该测试。

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{libertine}
\usepackage{libertinust1math}
\usepackage[ngerman]{babel}
\usepackage{csquotes}
\usepackage[backend=biber,style=apa6,apamaxprtauth=5]{biblatex}

\usepackage{xurl}

\renewbibmacro*{location+publisher}{%
  \printlist[default][1-1]{location}%
  \setunit*{\addcolon\space}%
  \printlist{publisher}%
  \newunit}

\begin{filecontents}{\jobname.bib}
@book{El-Richani2016,
    author    = {given=Sarah, family=El-Richani},
    doi       = {10.1057/978-1-137-60183-4},
    language  = {english},
    location  = {New York},
    publisher = {Palgrave Macmillan},
    subtitle  = {Anatomy of a System in Perpetual Crisis},
    title     = {The Lebanese Media},
    year      = {2016},
}
@book{Fuchs2021,
    author    = {given=Christian, family=Fuchs},
    doi       = {10.36198/9783838555003},
    edition   = {2., vollständig überarbeitete Auflage},
    language  = {ngerman},
    location  = {Tübingen},
    publisher = {UVK Verlag},
    subtitle  = {Eine Einführung},
    title     = {Soziale Medien und die Kritische Theorie},
    year      = {2021},
}
\end{filecontents}

\addbibresource{\jobname.bib}

\begin{document}
\cite{Fuchs2021} und \cite{El-Richani2016} belegen, dass...

\printbibliography

\end{document}

Fuchs,C.(2021 年)。社会媒体与批判理论:引言(2.全面阐述)。图宾根:UVK 出版社。 doi:10.36198/9783838555003 El-Richani,S.(2016 年)。黎巴嫩媒体:持续危机体系的剖析。纽约:Palgrave Macmillan。 doi:10.1057/978-1-137-60183-4

相关内容