Utilizo biblatex
con el authoryear-icomp
estilo y quiero citar dos obras del mismo autor que fueron escritas en el mismo año. La salida actual de \citet{examplea, exampleb}
es
Juan (1991a,b)
pero preferiría agregar un espacio adicional que resulte en
Juan (1991a, b).
Ya intenté redefinir \multicitedelim
y \compcitedelim
vía
\renewcommand{\multicitedelim}{\addcomma\addspace}
\renewcommand{\compcitedelim}{\addcomma\addspace}
pero eso no tuvo el efecto deseado.
MWE
\documentclass{article}
\usepackage[backend=biber, natbib, style=authoryear-icomp]{biblatex}
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@MISC{examplea,
author = {John, Doe},
title = {MyBook A},
date = {1991}
}
@MISC{exampleb,
author = {John, Doe},
title = {MyBook B},
date = {1991}
}
\end{filecontents*}
\bibliography{\jobname.bib}
\begin{document}
\citet{examplea, exampleb}
\end{document}
Respuesta1
El culpable de este comportamiento es el bibmacro textcite
…
Agregar las siguientes líneas en el preámbulo ( xpatch
se necesita el paquete)
\xpatchbibmacro{textcite}
{\setunit{\addcomma}}
{\setunit{\addcomma\addspace}}
{}
{}
resuelve el problema.
Código completo (también lo he cambiado \bibliography
a \addbibresource
)
\documentclass{article}
\usepackage[backend=biber, natbib, style=authoryear-icomp]{biblatex}
\usepackage{xpatch}
\xpatchbibmacro{textcite}
{\setunit{\addcomma}}
{\setunit{\addcomma\addspace}}
{}
{}
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@MISC{examplea,
author = {John, Doe},
title = {MyBook A},
date = {1991}
}
@MISC{exampleb,
author = {John, Doe},
title = {MyBook B},
date = {1991}
}
\end{filecontents*}
\addbibresource{\jobname.bib}
\begin{document}
\citet{examplea, exampleb}
\end{document}
Producción: