Biblatex 标题末尾的句号/问号/省略号存在问题,影响后续的 bib 宏

Biblatex 标题末尾的句号/问号/省略号存在问题,影响后续的 bib 宏

biblatex-dw当标题以句号、省略号或问号结尾时,我会遇到问题。它们被解释为句子的结尾,并影响后面的 bib 宏。

在 MWE 中,\textelp{}条目 ABC 的(此处是必需的)具有以下效果:

译者

用大写字母“T”代替条目 ABC2 的期望行为,输出

,翻译版 b

因此,我正在寻找一种方法来以某种方式隐藏 bib 宏中的句号/问号/省略号。

梅威瑟:

\documentclass{article}
\usepackage[backend=biber,style=footnote-dw]{biblatex}
\usepackage[]{csquotes}

\begin{filecontents*}{MWE.bib}
@BOOK{ABC,
    author = {Cornelisse, J. W. and Schoeyer, H. Ferry R. and Wakker, Karel F.},
        translator  = {Smith, John}, 
    title = {Rocket Propulsion and Spaceflight Dynamics \textelp{}},
    year = {1979},
    publisher = {Pitman},
}

@BOOK{ABC2,
    author = {Cornelisse, J. W. and Schoeyer, H. Ferry R. and Wakker, Karel F.},
        translator  = {Smith, John}, 
    title = {Rocket Propulsion and Spaceflight Dynamics},
    year = {1979},
    publisher = {Pitman},
}
\end{filecontents*}


\bibliography{MWE.bib}

\begin{document}
     Not the desired output\autocite[][]{ABC}.
    Desired output\autocite[][]{ABC2}.
\end{document}

答案1

显然,\textelp{}使 的biblatex标点符号跟踪器认为标题以句末句号结尾。biblatex然后抑制了句末句号和逗号这两个不必要的双标点符号。您可以通过 判断biblatex不是\textelp{}句末句号\isdot

\documentclass[british]{article}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[backend=biber,style=footnote-dw]{biblatex}
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@book{ABC,
  author     = {Cornelisse, J. W. and Schoeyer, H. Ferry R. and Wakker, Karel F.}  ,
  translator = {Smith, John}, 
  title      = {Rocket Propulsion and Spaceflight Dynamics \textelp{}\isdot},
  year       = {1979},
  publisher  = {Pitman},
}
@book{ABC2,
  author     = {Cornelisse, J. W. and Schoeyer, H. Ferry R. and Wakker, Karel F.},
  translator = {Smith, John}, 
  title      = {Rocket Propulsion and Spaceflight Dynamics},
  year       = {1979},
  publisher  = {Pitman},
}
\end{filecontents*}

\bibliography{\jobname.bib}

\begin{document}
  Not the desired output\autocite[][]{ABC}.
  Desired output\autocite[][]{ABC2}.
\end{document}

脚注 1 “JW Cornelisse/H. Ferry R. Schoeyer/Karel F. Wakker:火箭推进和太空飞行动力学 [...],由 John Smith 翻译,1979 年。”//脚注 2 “同上:火箭推进和太空飞行动力学,由 John Smith 翻译,1979 年。”

相关内容