csquotes icon indicating copy to clipboard operation
csquotes copied to clipboard

Use `\parentext` for `\mkcitation` when biblatex is loaded

Open pcdi opened this issue 11 months ago • 0 comments

When using the basic interface of text quoting together with biblatex's \parentext, the parentheses in the citations are not converted automatically because the basic interface uses \mkcitation, which is defined as \space (#1), where the parentheses are hardcoded. Therefore, any parentheses that are added outside the quotation via biblatex's \parentextdo not affect these inner ones.

I would suggest to adapt the definition of \mkcitation to check if biblatex is used and in that case to use \parentext to become \space \parentext{#1}. The MWE below illustrates this point. The left side shows the original definition from csquotes and the right side shows my proposed definition. On the left side, double round parentheses appear, while on the right side, the colliding parentheses are transformed to brackets.

MWE

\documentclass[twocolumn]{article}
\usepackage{csquotes}
\usepackage[style=authoryear]{biblatex}
\addbibresource{biblatex-examples.bib}

\begin{document}

\textquote[{\cite[25]{aksin}}]{quote}

\parentext{\textquote[{\cite[25]{aksin}}]{quote}}

\parentext{\textquote[{\textcite[25]{aksin}}]{quote}}

\parentext{\textquote[{\parencite[25]{aksin}}]{quote}}

\vfill\break

\renewcommand*{\mkcitation}[1]{\space \parentext{#1}}

\textquote[{\cite[25]{aksin}}]{quote}

\parentext{\textquote[{\cite[25]{aksin}}]{quote}}

\parentext{\textquote[{\textcite[25]{aksin}}]{quote}}

\parentext{\textquote[{\parencite[25]{aksin}}]{quote}}

\end{document}

parentext

pcdi avatar Feb 04 '25 15:02 pcdi