我的代码是:
\documentclass{book}
\usepackage{csquotes}
\usepackage[style=numeric,citestyle=numeric,sorting=nyt,sortcites=true,autopunct=true,autolang=hyphen,hyperref=true,abbreviate=false,backref=true,backend=biber]{biblatex}
% BibTeX bibliography file
\makeatletter
\defbibheading{bibempty}{}
\setlength{\bibhang}{5\p@}%
\setlength{\bibitemsep}{3\p@}%
\def\bibfont{\fontsize{8}{9}\selectfont}%
\renewcommand{\RNfont}{}
\makeatother
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@inproceedings{acerbi2017practical,
title={Practical Bayesian optimization for model fitting with Bayesian adaptive direct search},
author={Acerbi, Luigi and Ma, Wei Ji},
booktitle={Proceedings of the 31st International Conference on Neural Information Processing Systems},
pages={1834--1844},
year={2017}
}
\end{filecontents*}
\addbibresource{\jobname.bib}
\begin{document}
\cite{acerbi2017practical}
\clearpage
\printbibliography
\end{document}
它产生的输出如下:
但是,我需要进行以下更改:
- 应删除“In”文本后的冒号,这
inproceedings
仅适用于出现的条目,而不适用于其他类似article
风格book
的条目
为了更好地澄清:
答案1
“in”后面的标点符号由 控制\intitlepunct
,我们可以将其重新定义为 include,\ifentrytype
以便@inproceedings
和其他类型的定义有所不同。
\documentclass{article}
\usepackage{csquotes}
\usepackage[
backend=biber,
style=numeric,
sorting=nyt,
sortcites=true,
autopunct=true,
autolang=hyphen,
abbreviate=false,
backref=true,
]{biblatex}
\renewcommand*{\intitlepunct}{%
\ifentrytype{inproceedings}
{\addspace}
{\addcolon\space}}
\begin{filecontents*}{\jobname.bib}
@inproceedings{acerbi2017practical,
title = {Practical Bayesian optimization for model fitting with Bayesian adaptive direct search},
author = {Acerbi, Luigi and Ma, Wei Ji},
booktitle = {Proceedings of the 31st International Conference on Neural Information Processing Systems},
pages = {1834--1844},
year = {2017},
}
\end{filecontents*}
\addbibresource{\jobname.bib}
\addbibresource{biblatex-examples.bib}
\begin{document}
\cite{acerbi2017practical,sigfridsson,westfahl:space}
\printbibliography
\end{document}