I have a problem related to prefixes in the family names of researchers that I cite in my thesis. People whose names start with "van", "von, "den", "van der", and the like. I would want these to appear with the prefix in small letters in front of the family name in the reference in the running text, like (den Besten1983), then also in the same way in the bibliography, but not sorted after the prefix. So "den Besten, Hans" should be listed under B. With my current settings, I get (Besten1983) in the text, and "Besten, Hans den" in the bibliography. I have tried enclosing "den Besten" in curly brackets in the BibTex source (I use Jabref), like this {den Besten}, Hans. This gives the right result in the reference, but lists the name as "den Besten, Hans" under D in the bibliography.
Source in JabRef: author = {den Besten, Hans},
Here is a MWE:
\documentclass[12]{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage [T1]{fontenc}
\usepackage[backend=biber, style=authoryear-comp]{biblatex}
\addbibresource{ref.bib}
\begin{document}
Blabla \cite{denBesten1983}.
\printbibliography
\end{document}

biblatex. You should consider updating (as always, an update shortly before a deadline might be ill-advised, updates always have the potential to break stuff). In old versions\DeclareSortingNamekeyTemplatewas called\DeclareSortingNamekeyScheme, so you could replace the new name with the old one, maybe it works for you then. – moewe Jul 11 '18 at 06:30\DeclareSortingNamekeyTemplatewith\DeclareSortingNamekeySchemethe error message can't be the same because there is no\DeclareSortingNamekeyTemplateany more.\DeclareSortingNamekeySchemewas introduced in version 3.3 back in March 2016, it was renamed to \DeclareSortingNamekeyTemplate` in version 3.8 in November 2017. If your system is older than that, you can try https://tex.stackexchange.com/q/226893/35864. ... – moewe Jul 11 '18 at 06:45filecontentsis just to produce a.bibfile the MWE can use, it is not needed in your actual document. Only copy the bit up to\renewbibmacro{begentry}{\midsentence}. – moewe Jul 11 '18 at 06:51\renewbibmacro{begentry}{\midsentence}? – moewe Jul 11 '18 at 07:46\cite,\textcite,\parenciteetc., but not for\footcite, where theprefixis still printed with an upper-case initial in the footnote. Can anything be done about this? – gnucchi Nov 18 '18 at 15:15\xpatchbibmacro{name:family}{\MakeCapital}{}{}{}and\AtBeginBibliography{\renewcommand*{\mkbibnameprefix}[1]{\midsentence #1}}seem to be having the effect i am looking for. – gnucchi Nov 18 '18 at 15:33biblatexcapitalises the beginning of a\footcitelike the beginning of a sentence, hence the prefix comes out with a capital letter. It's the same for ibidem in a footnote citation, which comes out as "Ibid." if it is the first word. You can completely turn off this behaviour with\renewcommand{\bibfootnotewrapper}[1]{#1\addperiod}. If you want only your name prefixes to ignore capitalisation you need to remove the\MakeCapitalfromname:family-givenandname:family(I wouldn't redefine\mkbibnameprefixfor that). – moewe Nov 18 '18 at 15:48