使用biblatex
with时backend=biber,style=authoryear,sorting=ynt
,条目
@article{Author,
author = {Author, I.},
title = {Title},
journaltitle = {Journal},
date = {1980},
volume = {23},
number = {6},
pages = {121--123},
}
格式为
作者,I. (1980)。“标题”刊于:期刊 23.6,第 121-123 页。
如何删除“In”后面的冒号?
答案1
此处“in”后面的标点符号由其\intitlepunct
默认定义(来自biblatex.def
,l. 178) 是\addcolon\space
排版一个冒号,后跟一个空格。
\intitlepunct
解释如下biblatex
文档(第 124 页,第 3.12.1 节)通用命令和钩子,在 v3.19 中)
[ ] 在、、等
\intitlepunct
条目类型中,单词“in”与后面的标题之间的分隔符。默认定义是冒号加单词间空格(例如,“Article, in: Journal”或“Title, in: Book”)。请注意,这是分隔符字符串,而不仅仅是标点符号。如果您不想在“in”后出现冒号,仍应插入空格。@article
@inbook
@incollection
\intitlepunct
为了摆脱冒号,我们可以说
\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[backend=biber, style=authoryear]{biblatex}
\renewcommand*{\intitlepunct}{\addspace}
\addbibresource{biblatex-examples.bib}
\begin{document}
Lorem \autocite{sigfridsson}
\printbibliography
\end{document}
答案2
我可以很自由地采用你的代码并建模 MWE。
您必须重新定义 bibmacro in:
。我猜您可能想添加空格而不是冒号,但其他标点符号也是可能的:
\documentclass{article}
\begin{filecontents*}[overwrite]{\jobname.bib}
@article{Author,
author = {Author, I.},
title = {Title},
journaltitle = {Journal},
date = {1980},
volume = {23},
number = {6},
pages = {121--123},
}
\end{filecontents*}
\usepackage[backend=biber,style=authoryear,sorting=ynt]{biblatex}
\addbibresource{\jobname.bib}
\renewbibmacro*{in:}{%
\bibstring{in}%
\printunit{\addspace}} % <--! here the space is added
\begin{document}
Cite something\parencite{Author}
\printbibliography
\end{document}