我使用 OverLeaf 并将其连接到我的 Mendeley 帐户。每当我向 Mendeley 图书馆添加新论文时,Mendeley 都会输出 bib 文件并与 OverLeaf 同步。技术报告的参考书目上有“技术代表”,我一点也不喜欢。
我看过其他 StackExchange 帖子,人们建议简单地从 bib 文件的类型部分中删除“技术报告”。这种方法有效,但是每次 Mendeley 和 OverLeaf 同步时,所有 bib 条目都需要重新调整,因为 Mendeley 每次都将类型输出为“技术报告”。
是否有代码可以添加到我的主要手稿 latex 文件中,该代码会搜索我的 .bib 文件以查找所有 @techreport 条目?理想情况下,我可以专门控制技术报告的“类型”输出内容,这样将来我就可以节省大量时间,因为我会继续将技术报告添加到我的库中。目前,我想我会希望它是空的 {},但我可能希望它是 {Technical Report}。
解决方案必须不含 biblatex!
提前致谢!
\usepackage{babel}
\usepackage[utf8]{inputenc}
\usepackage{hyperref}
\hypersetup{unicode=true}
\usepackage{filecontents}
\begin{filecontents}{test.bib}
@TechReport{Smith2018,
author = {Smith, Joanne},
title = {The Impact of Maths},
institution = {},
year = {2018},
type = {Technical Report},
number = {},
address = {},
}
@TechReport{Smith2019,
author = {Smith, Joanne},
title = {The Impact of Physics},
institution = {},
year = {2019},
type = {Technical Report},
number = {},
address = {},
}
@TechReport{Smith2020,
author = {Smith, Joanne},
title = {The Impact of Chemistry},
institution = {},
year = {2020},
type = {Technical Report},
number = {},
address = {},
}
@TechReport{Smith201,
author = {Smith, Joanne},
title = {The Impact of Biology},
institution = {},
year = {2021},
type = {Technical Report},
number = {},
address = {},
}
\end{filecontents}```