我在使用 biblatex-apa 让数据条目类型打印参考列表中的标题时遇到了一些麻烦。测试参考中的示例似乎运行良好,并且当条目类型更改为 misc 时也是如此。
\documentclass[man,12pt,noextraspace,babel,american]{apa6}
\usepackage[utf8]{inputenc}
\usepackage{mathptmx} % Times-like font
\usepackage[breaklinks=true]{hyperref} % URL and TOC Handling
\usepackage{textcomp} % Copyright symbol
\usepackage{csquotes}
\usepackage{filecontents} % Insert/create new inline files
\usepackage[style=apa,sortcites=true,sorting=nyt,backend=biber,natbib=true]{biblatex}
\DeclareLanguageMapping{american}{american-apa}
\begin{filecontents}{bibliography.bib}
@data{StatCan:2012,
author = {{Statistics Canada}},
title = {{O'Leary, Prince Edward Island} ({Code} 1103042) and {Lot 6, Prince Edward Island} ({Code} 1103041)},
subtitle = {2011 {Census}},
titleaddon = {Census profile},
year = {2012},
type = {Statistics Canada Catalogue no. 98-316-XWE},
location = {Ottawa, ON},
URL = {http://www12.statcan.gc.ca/census-recensement/2011/dp-pd/prof/index.cfm?Lang=E},
}
@misc{StatCan:2012b,
author = {{Statistics Canada}},
title = {{O'Leary, Prince Edward Island} ({Code} 1103042) and {Lot 6, Prince Edward Island} ({Code} 1103041)},
subtitle = {2011 {Census}},
titleaddon = {Census profile},
year = {2012},
type = {Statistics Canada Catalogue no. 98-316-XWE},
location = {Ottawa, ON},
URL = {http://www12.statcan.gc.ca/census-recensement/2011/dp-pd/prof/index.cfm?Lang=E},
}
% (APA 7.08 Example 54)
@DATA{7.08:54,
ENTRYSUBTYPE = {Data file and code book},
AUTHOR = {{Pew Hispanic Center}},
TITLE = {Changing Channels and Crisscrossing Cultures},
SUBTITLE = {A Survey of {L}atinos on the News Media},
YEAR = {2004},
URL = {http://pewhispanic.org/datasets/}
}
\end{filecontents}
\addbibresource{bibliography.bib}
\title{Grand Unified Theory Revealed}
\author{Homer Jay Simspson}
\shorttitle{Grand Unified Theory}
\affiliation{Springfield University}
\begin{document}
\maketitle
\nocite{*}
\printbibliography
\end{document}
我正在使用报告类型字段来显示完整的目录编号,因为目录编号似乎不想在数据下显示。
答案1
查看data
驱动程序apa.bbx
表明它需要有一个entrysubtype
字段用于打印标题(我不完全确定为什么,但这就是它当前的设置方式)。
7.08:54
您会发现示例有一个entrysubtype
字段,因此会打印标题,但您的示例StatCan:201
缺少这样的字段。这里最简单的解决方案可能是将titleaddon
字段的内容移动到entrysubtype
,因为“人口普查资料”似乎非常恰当地描述了您此处的数据类型。
@data{StatCan:2012,
author = {{Statistics Canada}},
title = {{O'Leary, Prince Edward Island} ({Code} 1103042) and {Lot 6, Prince Edward Island} ({Code} 1103041)},
subtitle = {2011 {Census}},
entrysubtype = {Census profile},
year = {2012},
type = {Statistics Canada Catalogue no. 98-316-XWE},
location = {Ottawa, ON},
URL = {http://www12.statcan.gc.ca/census-recensement/2011/dp-pd/prof/index.cfm?Lang=E},
}
工作正常。