Entrysubtype:如何避免打印它?

Entrysubtype:如何避免打印它?

我正在使用 Overleaf,但简历的选择性库存在一些问题。我不想显示文件@articles中的所有内容.bib,因为有些内容正在进行中,有些内容已发布。因此,我有不同的内容entrysubtypes,例如{myarticle}{workinprogress}{inrevision}。我的代码:

\begin{filecontents}[overwrite]{\jobname.bib}
@inbook{OwnPub001,
    author = {Fnu1 Snu1 and Fnu2 Snu2},
    title = {Exampletitel 1},
    year = {2022},
    booktitle = {Booktitle 1},
    editor = {FnuEd1 SnuEd1},
    publisher = {Springer},
    address = {},
    edition = {},
    pages = {},
    doi = {},
    entrysubtype = {section}
}

@article{OwnPub002,
    author = {Fnu1 Snu1 and Fnu3 Snu3},
    year = {2019},
    title = {Exampletitle 2},
    journal = {TestJournal},
    volume = {5},
    number = {},
    pages = {600-623},
    ISSN = {},
    doi = {10.XXXX},
    entrysubtype = {article}
}
\end{filecontents}


\documentclass[a4paper,11pt]{article}

\usepackage[american]{babel}
\usepackage[backend=biber,style=apa,sorting=ydnt]{biblatex}

\DeclareLabeldate[article]{\field{year}}
\DeclareLanguageMapping{american}{american-apa}
\addbibresource{\jobname.bib}
\DeclareFieldFormat{apacase}{#1}

\AtEveryBibitem{\clearfield{entrysubtype}}

\begin{document}
\section{Publications \& Presentations}
\nocite{*}
\printbibliography[heading=subbibintoc,title=Peer-Reviewed Journals,subtype=article]
\printbibliography[heading=subbibintoc,title=Book Chapters,subtype=section]
\printbibliography[heading=subbibintoc,title=Conferences \& Workshop Items,subtype=conference]
\end{document}

执行此操作时,apa 输出始终显示entrysubtitle在 [] 中(例如,Author, D. 2022. Title [myarticle]. *Journal*

我不想[entrysubtype]在打印的参考文献中出现 ,因为它仅用作排序参数。有人知道如何entrysubtype在参考书目中“删除”打印 吗?

答案1

使用我评论的解决方案有效,\AtEveryBibitem{\clearfield{entrysubtype}}。没有\AtEveryBibitem{\clearfield{entrysubtype}}

在此处输入图片描述

\AtEveryBibitem{\clearfield{entrysubtype}}

在此处输入图片描述

\begin{filecontents}[overwrite]{\jobname.bib}
@inbook{OwnPub001,
    author = {Fnu1 Snu1 and Fnu2 Snu2},
    title = {Exampletitel 1},
    year = {2022},
    booktitle = {Booktitle 1},
    editor = {FnuEd1 SnuEd1},
    publisher = {Springer},
    address = {},
    edition = {},
    pages = {},
    doi = {},
    entrysubtype = {section}
}

@article{OwnPub002,
    author = {Fnu1 Snu1 and Fnu3 Snu3},
    year = {2019},
    title = {Exampletitle 2},
    journal = {TestJournal},
    volume = {5},
    number = {},
    pages = {600-623},
    ISSN = {},
    doi = {10.XXXX},
    entrysubtype = {article}
}
\end{filecontents}


\documentclass[a4paper,11pt]{article}

\usepackage[american]{babel}
\usepackage[backend=biber,style=apa,sorting=ydnt]{biblatex}

\DeclareLabeldate[article]{\field{year}}
\DeclareLanguageMapping{american}{american-apa}
\addbibresource{\jobname.bib}
\DeclareFieldFormat{apacase}{#1}

\AtEveryBibitem{\clearfield{entrysubtype}}

\begin{document}
\section{Publications \& Presentations}
\nocite{*}
\printbibliography[heading=subbibintoc,title=Peer-Reviewed Journals,subtype=article]
\printbibliography[heading=subbibintoc,title=Book Chapters,subtype=section]
\printbibliography[heading=subbibintoc,title=Conferences \& Workshop Items,subtype=conference]
\end{document}

它适用于 TeXlive 2023 Windows 10 以及 Overleaf 2022 pdflatex

在此处输入图片描述

我不确定您是否尝试过我的评论建议,如果没有,请记住,很多问题都会在未来的评论中得到解决,希望这会有所帮助!

相关内容