我有一个类似的问题:从 SIAM bibtex 样式中删除“Tech. Rep.”输出
在我的文档中,我以 APA 格式引用了不同的报告。但是,在我的参考文献列表中,它们包含 [tech.rep],而这在 APA 格式中通常不常用。我该如何删除它?
\documentclass[12pt]{report}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\renewcommand{\baselinestretch}{1.5}
\usepackage{lipsum}
\usepackage[english]{babel}
\usepackage[backend=biber, maxcitenames=2, style=apa, sorting=anyt]{biblatex}
\DeclareNameAlias{sortname}{family-given}
\addbibresource{bibliography.bib}
\usepackage[autostyle, english = british]{csquotes}
\begin{document}
\lipsum[1]
\parencite{b20_taskforce_open_2017}
\printbibliography
\end{document}
以及以下 bib 条目:
@techreport{b20_taskforce_open_2017,
title = {Open, dynamic and inclusive labor markets: {Harnessing} the potential of technological change and creating a global level playing field},
url = {https://www.uscib.org/uscib-content/uploads/2017/05/B20-Policy-Paper-EE_final.pdf},
urldate = {2020-06-07},
author = {{B20 Taskforce}},
year = {2017},
file = {B20-Policy-Paper-EE_final.pdf:C\:\\Users\\eszti\\Zotero\\storage\\XDQIBP4B\\B20-Policy-Paper-EE_final.pdf:application/pdf}
}
在参考列表中给出以下输出:
答案1
去掉“技术代表”的最简单方法是将输入类型@report
改为@techreport
。
仅仅是biblatex
@techreport
一个 (BibTeX) 兼容性别名,它被解析为一个@report
添加的条目type = {techreport}
(仅当type
尚未设置时)。
如果直接使用@report
,则可以不包括自动添加type = {techreport},
的。@techreport
\documentclass[12pt]{report}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage[autostyle, english = british]{csquotes}
\usepackage[backend=biber, style=apa]{biblatex}
\DeclareNameAlias{sortname}{family-given}
\begin{filecontents}{\jobname.bib}
@report{b20_taskforce_open_2017,
title = {Open, Dynamic and Inclusive Labor Markets:
{Harnessing} the Potential of Technological Change
and Creating a Global Level Playing Field},
url = {https://www.uscib.org/uscib-content/uploads/2017/05/B20-Policy-Paper-EE_final.pdf},
urldate = {2020-06-07},
author = {{B20 Taskforce}},
year = {2017},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\autocite{b20_taskforce_open_2017}
\printbibliography
\end{document}
如果您必须坚持,您可以在标准类型映射启动之前@techreport
使用以下内容从到\DeclareSourcemap
进行映射。这样我们就可以避免被添加到条目中。@techreport
@report
biblatex
type = {techreport},
\documentclass[12pt]{report}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage[autostyle, english = british]{csquotes}
\usepackage[backend=biber, style=apa]{biblatex}
\DeclareNameAlias{sortname}{family-given}
\DeclareSourcemap{
\maps[datatype=bibtex]{
\map{
\step[typesource=techreport, typetarget=report]
}
}
}
\begin{filecontents}{\jobname.bib}
@techreport{b20_taskforce_open_2017,
title = {Open, Dynamic and Inclusive Labor Markets:
{Harnessing} the Potential of Technological Change
and Creating a Global Level Playing Field},
url = {https://www.uscib.org/uscib-content/uploads/2017/05/B20-Policy-Paper-EE_final.pdf},
urldate = {2020-06-07},
author = {{B20 Taskforce}},
year = {2017},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\autocite{b20_taskforce_open_2017}
\printbibliography
\end{document}