这回答这个问题规定“van”前缀出现在句首时应大写。但下面的代码排版为“van Dijk”。当“van”出现在句首时,我该如何得到“Van Dijk”?
\documentclass{scrartcl}
\usepackage[style=authoryear,sorting=nyt,backend=biber,useprefix=false]{biblatex}
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@book{dijk,
author = {van Dijk, A.},
title = {Some Nice Title},
date = 2015,
publisher = {P. Ublisher},
location = {Place},
}
\end{filecontents*}
\bibliography{\jobname.bib}
\renewbibmacro*{begentry}{\midsentence}
\makeatletter
\AtBeginDocument{\toggletrue{blx@useprefix}}
\makeatother
\begin{document}
\textcite{dijk} not capitalising start of sentence
\printbibliography
\end{document}
答案1
该\textcite
命令使用标准大写字母;然而,该biblatex
软件包规定\Textcite
可以在句首使用(手册第 3.7.2 节)。
\documentclass{scrartcl}
\usepackage[style=authoryear,sorting=nyt,backend=biber,useprefix=false]{biblatex}
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@book{dijk,
author = {van Dijk, A.},
title = {Some Nice Title},
date = 2015,
publisher = {P. Ublisher},
location = {Place},
}
\end{filecontents*}
\bibliography{\jobname.bib}
\renewbibmacro*{begentry}{\midsentence}
\makeatletter
\AtBeginDocument{\toggletrue{blx@useprefix}}
\makeatother
\begin{document}
\Textcite{dijk} capitalising start of sentence
\printbibliography
\end{document}