Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pcdi opened this issue Feb 4, 2025 · 0 comments
Open

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

pcdi opened this issue Feb 4, 2025 · 0 comments

Comments

@pcdi
Copy link

pcdi commented Feb 4, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant