BibLaTeX 自动将 entrytype 论文中的 pubstate 大写吗?

BibLaTeX 自动将 entrytype 论文中的 pubstate 大写吗?

我有一个类型为 的参考书目条目thesis,其中包含institutionpubstate。在引文中,这会导致机构后出现一个点,后跟非大写的pubstate

在这种情况下,我想自动将其pubstate大写(因为我想在参考书目文件中继续将其变为小写)。

作为一个附带问题或替代方案:我怎样才能使机构以逗号而不是点开头,然后跟上pubstate

在此处输入图片描述

\documentclass{article}
\usepackage[english]{babel}
\usepackage{csquotes}
\usepackage[backend=biber,style=authoryear,dashed=false]{biblatex}

\addbibresource{\jobname.bib}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}

@thesis{Clark,
    author = {Shirin Clark},
    title = {My thesis title },
    year = {2016},
    institution = {New York University},
    location = {New York, NY, USA},
    pubstate = {unpublished}
}
\end{filecontents}

\begin{document}

\cite{Clark}

\printbibliography

\end{document}

答案1

最简单的解决办法可能是

pubstate = {\autocap{u}npublished}

但你也可以使用本地化模块

\NewBibliographyString{unpublished}
\DefineBibliographyStrings{english}{unpublished = {unpublished}}

在这种情况下,您可以将“未发布”翻译成其他语言,同时仍然只unpubslished在该pubstate领域。(biblatex已经知道值inpreparation,,,,。)submittedforthcominginpressprepublished

平均能量损失

\documentclass{article}
\usepackage[english]{babel}
\usepackage{csquotes}
\usepackage[backend=biber,style=authoryear,dashed=false]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@thesis{Clark,
    author = {Shirin Clark},
    title = {My thesis title},
    year = {2016},
    institution = {New York University},
    location = {New York, NY, USA},
    pubstate = {unpublished},
}
\end{filecontents}

\NewBibliographyString{unpublished}
\DefineBibliographyStrings{english}{unpublished = {unpublished}}

\addbibresource{\jobname.bib}
\begin{document}
\cite{Clark}
\printbibliography
\end{document}

相关内容