My friend has a problem where he uses \footcite
together with authorstyle-icomp
and wants things like "ibid." (ebd. in German) to be uppercased when they're at the beginning of a footnote
. Also, his bibliography includes Arabic surnames like "al-Kabir", which need to be uppercased as well if a footnote
starts with them. So pretty much: footnotes always must start with an uppercase letter.
I tried to solve the problem with a macro I found over at https://stackoverflow.com/questions/2818119/automatically-capitalize-first-letter-of-first-word-in-a-new-sentence-in-latex (\uppercasesingleletter
), which unfortunately (a) still uppercases everything and (b) doesn't let itself be integrated into a renewed footnote
command.
Here's the Minimal-not-Working Example:
\documentclass{scrartcl}
\usepackage{csquotes}
\usepackage{polyglossia}
\setmainlanguage[spelling=new]{german}
\def\uppercasesingleletter#1{\uppercase{#1}}
\let\oldfootnote\footnote
% compiles, but doesn't do anything
\renewcommand\footnote[1]{\oldfootnote{\uppercasesingleletter{#1}}}
% does not compile in the first place
% \renewcommand\footnote[1]{\oldfootnote{\uppercasesingleletter{#1}}}
\begin{filecontents}{test.bib}
@book{ali:title:2008,
title = {Ali's Title},
author = {Ali, Jamal},
date = {2008}
}
@book{azzayn:title:1965,
title = {Az-Zayn's Title},
editor = {az-Zayn, Ahmad},
date = {1965}
}
\end{filecontents}
\usepackage[backend=biber,citestyle=authoryear-icomp]{biblatex}
\addbibresource{test.bib}
\DeclareFieldFormat*{citetitle}{\emph{#1}}
\begin{document}
\uppercasesingleletter{only the first letter of this should be uppercase!}
To this here I want to make a reference.\footcite[p. 14]{ali:title:2008} And another one.\footcite[p. 15]{ali:title:2008}
However, what follows needs some more explaining.\footnote{\cite[p. 16]{ali:title:2008}, compare \cite[p. 141]{azzayn:title:1965}.}
First we go back to the first source,\footcite[p. 12]{ali:title:2008} and then we can see that this is an entirely different thing though.\footcite[p. 150]{azzayn:title:1965}
\end{document}