我想引用网上报纸文章。根据 APA6,这应该通过打印完整日期来完成(不只是年份)。
我找到了这个帖子:https://texwelt.de/fragen/18642/reihenfolge-biblatex-bei-author#(德语)。那里有一个解决方案,看帖子中的屏幕截图,应该可以满足我的需要:
但是,如果我在这里编译完全相同的源代码,它仍然只显示年份:
这是相应的源代码:
\begin{filecontents*}{\jobname.bib}
@article{SpiegelOnline.2013,
author = {{Spiegel Online}},
shortauthor = {jok},
date = {2013-06-09},
title = {Obama verteidigt Abhöraktion Prism},
url = {http://www.spiegel.de/politik/deutschland/gespraeche-mit-merkel-obama-verteidigt-in-berlin-abhoeraktion-prism-a-906638.html},
urldate = {2016-07-08},
journal = {Spiegel Online}
% ... Stripped the additional two entries ...
}
\end{filecontents*}
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[babel=true,german=quotes]{csquotes}
\usepackage[style=apa,backend=biber,language=ngerman,apamaxprtauth=99]{biblatex}
\DeclareLanguageMapping{ngerman}{ngerman-apa}
\DeclareFieldFormat{apacase}{#1}
\addbibresource{\jobname.bib}
\begin{document}
\nocite{SpiegelOnline.2013}
\printbibliography
\end{document}
我猜想这是因为我使用了较新的软件包。这些是我在这里运行的版本:
Package: inputenc 2018/08/11 v1.3c Input encoding file
Package: babel 2020/02/28 3.41 The Babel package
Package: csquotes 2019-12-06 v5.2j context-sensitive quotations (JAW)
Package: etoolbox 2019/09/21 v2.5h e-TeX tools for LaTeX (JAW)
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
Package: biblatex 2019/12/01 v3.14 programmable bibliographies (PK/MW)
Package: pdftexcmds 2019/11/24 v0.31 Utility functions of pdfTeX for LuaTeX (HO
Package: infwarerr 2019/12/03 v1.5 Providing info/warning/error messages (HO)
Package: iftex 2019/11/07 v1.0c TeX engine tests
Package: ltxcmds 2019/12/15 v1.24 LaTeX kernel commands for general use (HO)
Package: kvoptions 2019/11/29 v3.13 Key value format for package options (HO)
Package: kvsetkeys 2019/12/15 v1.18 Key value parser (HO)
Package: logreq 2010/08/04 v1.0 xml request logger
Package: ifthen 2014/09/29 v1.1c Standard LaTeX ifthen package (DPC)
Package: url 2013/09/16 ver 3.4 Verb mode for urls, etc.
我需要做什么才能使其显示完整的日期?
答案1
更新下列的https://github.com/plk/biblatex-apa/issues/116的下一个版本biblatex
将会寻找更加符合地道的entrysubtype = {nonacademic},
而不是keywords = {nonacademic},
。
新版本biblatex-apa
(即实施第 7 版 APA 样式的 v9.0 及以上版本)会查找关键字nonacademic
来@article
决定是否打印完整日期。
如果您添加keywords = {nonacademic},
条目,您应该会再次看到日期。
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[babel=true,german=quotes]{csquotes}
\usepackage[style=apa,backend=biber,apamaxprtauth=99]{biblatex}
\DeclareFieldFormat{apacase}{#1}
\begin{filecontents*}{\jobname.bib}
@article{SpiegelOnline.2013,
author = {Johannes Korge},
shortauthor = {jok},
date = {2013-06-09},
title = {Obama verteidigt Abhöraktion Prism},
url = {http://www.spiegel.de/politik/deutschland/gespraeche-mit-merkel-obama-verteidigt-in-berlin-abhoeraktion-prism-a-906638.html},
urldate = {2016-07-08},
journal = {Spiegel Online},
keywords = {nonacademic},
}
\end{filecontents*}
\addbibresource{\jobname.bib}
\begin{document}
\nocite{SpiegelOnline.2013}
\printbibliography
\end{document}