使用 apa 式從 biblatex 的參考書目中刪除“In”

使用 apa 式從 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有點奇怪。聽起來更像是 aseries而不是 a 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”。

相關內容