如何在 biblatex 中不确定的日期后的问号周围添加括号?

如何在 biblatex 中不确定的日期后的问号周围添加括号?

首先一个MWS,其输出如下。

\documentclass[american]{article}
\usepackage[style=authoryear,dateuncertain=true]{biblatex}
\addbibresource{\jobname.bib}

\begin{filecontents*}[overwrite]{\jobname.bib}
@book{somebook1769,
  location = {Place},
  author  = {Name, Given},
  title   = {Some title of this publication},
  date    = {1769?},
}
@book{somebook1889,
    location = {Paris},
    author  = {Name, Given},
    title   = {Some title of this publication},
    date    = {1889},
}
\end{filecontents*}

\begin{document}
some quote from \cite[1348--1368]{somebook1769} and \cite{somebook1889}

\printbibliography
\end{document}

在此处输入图片描述

如您所见,我在不确定的日期后面添加了一个问号。那么如何在问号周围添加括号?例如,将 1769? 更改为 1769(?)。

答案1

控制不确定性标记的宏称为\bibdateuncertain。其默认定义是一个问号,但您可以轻松添加括号,如下所示

\documentclass[american]{article}
\usepackage[style=authoryear,dateuncertain=true]{biblatex}

\renewrobustcmd*{\bibdateuncertain}{\mkbibparens{?}}

\begin{filecontents*}{\jobname.bib}
@book{somebook1769,
  location = {Place},
  author   = {Name, Given},
  title    = {Some title of this publication},
  date     = {1769?},
}
@book{somebook1889,
  location = {Paris},
  author  = {Name, Given},
  title   = {Some title of this publication},
  date    = {1889},
}
\end{filecontents*}
\addbibresource{\jobname.bib}

\begin{document}
some quote from \cite[1348--1368]{somebook1769} and \cite{somebook1889}

\printbibliography
\end{document}

一些引文来自 Name 1769(?),第 1348-1368 页和 Name 1889 Name, Given (1769[?])。

相关内容