我使用 BibTeX 来biblatex
创建参考书目。在我的 BibTeX 数据库中,我定义了一个@inbook
包含作者、标题、年份和书名的参考文献。现在的问题是,该参考文献呈现为:
作者(年份):“书名”。在:书名。
我需要删除标题周围的引号。
我已经有一个包含一些其他定义的自定义引用样式文件,但我找不到在哪里删除这些引号。
答案1
默认定义在 中biblatex.def
。对于你的情况,它们是:
\DeclareFieldFormat[article,inbook,incollection,inproceedings,patent,thesis,unpublished]{citetitle}{\mkbibquote{#1\isdot}}
\DeclareFieldFormat[article,inbook,incollection,inproceedings,patent,thesis,unpublished]{title}{\mkbibquote{#1\isdot}}
因此,您可以将以下内容添加到您自己的.tex
文件中(或添加到biblatex.cfg
):
\DeclareFieldFormat[inbook]{citetitle}{#1}
\DeclareFieldFormat[inbook]{title}{#1}
第一个是从引用中删除引号;第二个是从参考书目中删除引号。
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@InBook{entry1,
author = {Author, A.},
booktitle = {Main Title of Book},
title = {InBook Title without Quotation Marks},
publisher = {The Publisher},
date = 3000,
location = {CityPlace},
pages = {63--90},
}
@article{entry2,
author = {Author, A.},
title = {Title of Article},
journal = {Journal Title},
volume = {50},
number = {3},
date = 3000,
pages = {63--90},
}
\end{filecontents}
\usepackage[style=authortitle,backend=bibtex]{biblatex}
\addbibresource{\jobname.bib}
\DeclareFieldFormat[inbook]{citetitle}{#1}
\DeclareFieldFormat[inbook]{title}{#1}
\begin{document}
\cite{entry1,entry2}
\printbibliography
\end{document}