I was surprised when today I got the error message Package csquotes Error: Unbalanced groups or invalid nesting
. After a while I found the culprit in my bibliography-file. It is a bib-item whose title contains two nested \mkbibquote
-commands like
Title = {aaa aaa \mkbibquote{bbb bbb \mkbibquote{ccc ccc} bbb bbb} aaa aaa}
I have to say, I was rather surprised that this caused any problem at all, in particulalr since David has demonstrated to me elsewhere that the biblatex commands "are defined to expand to the normal ones by default". By "normal ones" he meant commands such as \enquote
and it surely is alright to write aaa aaa \enquote{bbb bbb \enquote{ccc ccc} bbb bbb} aaa aaa
, or isn't it?
So what's wrong with my bib-item?
MWE:
% !TEX TS-program = lualatexmk
\documentclass{scrartcl}
\usepackage{fontspec}
\setmainfont[Ligatures=TeX]{Times New Roman}
\usepackage{csquotes}
\usepackage[style=verbose,abbreviate=false,backend=biber]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{example,
Author = {Author},
Journaltitle = {Journaltitle},
Title = {aaa aaa \mkbibquote{bbb bbb \mkbibquote{ccc ccc} bbb bbb} aaa aaa},
Year = {2014}}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\fullcite{example}.
\end{document}
Best Answer
Looking in the
log
file you will see:caused by the title being inside a
bibmkquote=enquote
already. Just change the maximum level allowed by passing themaxlevel
opiton tocsquotes
: