I reduced the problem to the following minimal working example (MWE):
\begin{filecontents}{library.bib}
@misc {test1,
author = {Author},
note = {{This note is "bad"}},
}
\end{filecontents}
\documentclass[12pt]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[ngerman, english]{babel}
%\usepackage[english, ngerman]{babel}
\usepackage[backend=biber]{biblatex}
\addbibresource{library.bib}
\begin{document}
\cite{test1}
\printbibliography[]
\end{document}
The code above works fine. However, if I change the main language with \usepackage[english, ngerman]{babel}
I get the following error:
! Argument of \language@active@arg" has an extra }.
- Ideally, I'm looking for a solution which doesn't include changing the
.bib
files, because they're external and I don't have control over them. Even though the problem seems to be with"
and}
inside the.bib
file. (I realized thatnote = {This note is "bad"}
ornote = {{This note is bad}}
ornote = {{This note is "bad".}}
seem to work with both languages. Butnote = {{This note is "bad"}}
isn't malformed, or is it? It should work, right?) - So, maybe I can just set the main language for the
.bib
resource back toenglish
as a workaround?
Thanks for any ideas :-)
filecontents
environment before\documentclass
"
for quotation mark, usecsquotes
and its\enquote{foo}
or ``foo''."
thing is probably mentioned in any good introduction to TeX, so many people know it.