Skip to content

Use \parentext for \mkcitation when biblatex is loaded #76

@pcdi

Description

@pcdi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions