使用 apa-styple 从 biblatex 中的参考书目中删除“In”

使用 apa-styple 从 biblatex 中的参考书目中删除“In”

我尝试使用 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 被调用inbiblatex-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”。

相关内容