![提供 DOI 后未打印出版商和位置](https://linux22.com/image/467520/%E6%8F%90%E4%BE%9B%20DOI%20%E5%90%8E%E6%9C%AA%E6%89%93%E5%8D%B0%E5%87%BA%E7%89%88%E5%95%86%E5%92%8C%E4%BD%8D%E7%BD%AE.png)
我正在使用 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
它看起来像这样:
我该如何改变它,以便当来源打印 DOI 时不再省略位置和发布者?
答案1
location+publisher
bibmacro的定义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}