
Mi amigo tiene un problema cuando usa \footcite
y authorstyle-icomp
quiere cosas como "ibid". (ebd. en alemán) deben estar en mayúsculas cuando están al principio de un footnote
. Además, su bibliografía incluye apellidos árabes como "al-Kabir", que también deben escribirse en mayúsculas si footnote
comienza con ellos. Más o menos: las notas a pie de página siempre deben comenzar con una letra mayúscula.
Intenté resolver el problema con una macro que encontré enhttps://stackoverflow.com/questions/2818119/automatically-capitalize-first-letter-of-first-word-in-a-new-sentence-in-latex( \uppercasesingleletter
), que lamentablemente (a) todavía pone todo en mayúsculas y (b) no se deja integrar en un footnote
comando renovado.
Aquí está el ejemplo mínimo que no funciona:
\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}
Respuesta1
Esto no funcionará. \uppercase
es una primitiva que funcionará bien para texto simple, pero no con contenido arbitrario ni con comandos complicados como \cite
.
En tu caso tampoco veo la necesidad de usarlo. Las notas a pie de página ya empiezan en la mayoría de los casos con mayúscula. Existe el \Cite command
, y para az-Zayn puedes usar \autocap
:
@book{azzayn:title:1965,
title = {Az-Zayn's Title},
editor = {\autocap{a}z-Zayn, Ahmad},
date = {1965}
}
(ver tambiénBiblatex, mayúsculas en nombres árabes y prefijos de nombres)
\documentclass{scrartcl}
\usepackage{csquotes}
\usepackage{polyglossia}
\setmainlanguage{english}
\usepackage[backend=biber,citestyle=authoryear-icomp]{biblatex}
\addbibresource{bib.bib}
\begin{document}
\footcite[14]{ali:title:2008}\footcite[1]{ali:title:2008}
\footnote{\Cite[16]{ali:title:2008}, compare \cite[141]{azzayn:title:1965}.}
\footcites[16]{ali:title:2008}[compare][141]{azzayn:title:1965}
\footcite[12]{ali:title:2008} \footcite[150]{azzayn:title:1965}
\end{document}
Por cierto: no agregue "p." en las notas posteriores. Deja que biblatex lo haga.