![使用 apa-styple 从 biblatex 中的参考书目中删除“In”](https://linux22.com/image/423860/%E4%BD%BF%E7%94%A8%20apa-styple%20%E4%BB%8E%20biblatex%20%E4%B8%AD%E7%9A%84%E5%8F%82%E8%80%83%E4%B9%A6%E7%9B%AE%E4%B8%AD%E5%88%A0%E9%99%A4%E2%80%9CIn%E2%80%9D.png)
我尝试使用 APA 样式从参考书目中删除“In”一词。我发现一些评论建议我使用 renewbibmacro,但它仍然出现在参考书目中。这是我的示例代码
\documentclass{article}
\usepackage[utf8]{inputenc}
\title{TExtTemp}
\author{mynameisbee }
\date{November 2020}
\usepackage[
backend=biber,
bibencoding=utf8,
style=apa6,
citestyle=numeric,
firstinits=true,
isbn=false,
doi=false,
url=false,
sorting=none,
clearlang=true,
natbib=true,
intitle=true,
date=year,
uniquelist=false,
maxbibnames=6,
maxcitenames=1,
defernumbers=true
]{biblatex}
%% for a list number index
\makeatletter
\RequireBibliographyStyle{numeric}
\makeatother
\DeclareFieldFormat[inproceedings]{title}{\textbf{#1}}
\DeclareFieldFormat[inproceedings]{booktitle}{#1}
\DeclareFieldFormat[article]{title}{#1}
\DeclareFieldFormat[article]{journaltitle}{\textbf{#1}}
\DeclareFieldFormat[article,unpublished,misc]{volume}{\textbf{#1}}
%% remove comma in Author name
%\DeclareNameAlias{default}{last-first}
\renewcommand*{\revsdnamepunct}{}
%remove "in" out from proceeding
\renewbibmacro*{in:}{}
\begin{filecontents}{jobname.bib}
@article{Ellen,
title={Pathogen-Host Interactions: Antigenic Variation V. Somatic Adaptations},
journaltitle = {Journal of Signal Processing Systems},
author={Hsu, Ellen and Du Pasquier, Louis},
volume={57},
year={2015},
publisher={Springer}
}
@inproceedings{Pisit,
title = {Latent Cognizance: {{What}} Machine Really Learns},
booktitle = {{{ACM}} International Conference Proceeding Series},
author = {Nakjai, Pisit and Ponsawat, Jiradej and Katanyukul, Tatpong},
date = {2019},
pages = {164--170}
}
\end{filecontents}
\addbibresource{jobname.bib}
\begin{document}
\cite{Ellen} is a chapter in \cite{Pisit}.
\printbibliography[title=REFERENCES]
\end{document}
这是我的结果。红色块中仍然有“In”字样。还有一个问题,我想删除括号(绿色块)。我该如何删除它?
答案1
圭多已经评论中指出相关的 bibmacro 被调用in
而biblatex-apa6
不是in:
。因此你需要类似
\renewbibmacro*{in}{}
booktitle
条目中的看起来Pisit
有点奇怪。听起来更像是series
而不是booktitle
。研究表明
@inproceedings{Pisit,
title = {Latent Cognizance: What Machine Really Learns},
booktitle = {AIPR '19: Proceedings of the 2nd International Conference
on Artificial Intelligence and Pattern Recognition},
author = {Nakjai, Pisit and Ponsawat, Jiradej and Katanyukul, Tatpong},
date = {2019},
pages = {164--170}
}
会更合适。在这种情况下,我肯定会坚持使用“in”。