考虑以下 MWE:
\begin{filecontents}[overwrite]{\jobname.bib}
@phdthesis{author_book,
title = {Book's title},
author = {Author, Some},
publisher = {Publisher},
date = {2005},
}
\end{filecontents}
\documentclass{article}
\usepackage[isbn=false,giveninits=true,uniquename=init,style=authoryear-comp,backend=biber,natbib,maxbibnames=99,maxcitenames=3,hyperref=true]{biblatex} % To get fancy bibliography as desired.
\addbibresource{\jobname.bib}
\begin{document}
\citet{author_book}
\printbibliography
\end{document}
如下图所示,结果为“PhD thesis”,其中单词论文不是大写。我想得到这个词论文大写(即,论文)。 我怎样才能做到这一点?
谢谢你们!
答案1
一种简单的方法是宣布你想要将单词大写:
@phdthesis{author_book,
title = {Book's title},
author = {Author, Some},
publisher = {Publisher},
date = {2005},
type = {PhD Thesis},
}
对于单个条目,这是最简单的方法。否则
\begin{filecontents}[overwrite]{\jobname.bib}
@phdthesis{author_book,
title = {Book's title},
author = {Author, Some},
publisher = {Publisher},
date = {2005},
}
\end{filecontents}
\documentclass{article}
\usepackage[
isbn=false,
giveninits=true,
uniquename=init,
style=authoryear-comp,
backend=biber,
natbib,
maxbibnames=99,
maxcitenames=3,
hyperref=true,
]{biblatex} % To get fancy bibliography as desired.
\DefineBibliographyStrings{english}{
phdthesis = {PhD\addabbrvspace Thesis}
}
\addbibresource{\jobname.bib}
\begin{document}
\citet{author_book}
\printbibliography
\end{document}