# Including \DJ character into bibliography

I'm writing a text and want to cite someone with a strike-through D in his family. Please see the MWE below:

LaTeX file:

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[backend=biber]{biblatex}
\bibliography{mwe}
\begin{document}
Foo Bar\cite{foo}
\end{document}


BiBLaTeX:

@Article{zbMATH00205607,
Author = {Dragomir \v{Z}. {{\DJ}okovi\'c}},
Title = {{Williamson matrices of order $4n$ for $n = 33, 35, 39$.}},
Journal = {{Discrete Math.}},
Volume = {115},
Number = {1-3},
Pages = {267--271},
Year = {1993},
Publisher = {Elsevier Science B.V. (North-Holland), Amsterdam}
}


When I try to compile the document, I'm getting the message mwe.bbl:55: Paragraph ended before \name was complete. The log file reads:

(./mwe.bbl
Runaway argument?
{{{hash=e95cf544cc8feefbc0a7a2390cb4acba}{{{{\DJ }}okovi\'{c}}}{{{\DJ \ETC.
! Paragraph ended before \name was complete.
\par
l.55

I suspect you've forgotten a }', causing me to apply this
control sequence to too much text. How can we recover?
My plan is to forget the whole thing and hope for the best.


As far as I see it the braces are balanced. When I change the name to 'Dokovic' the document compiles and it seems correct. What can I do to insert the correct name?

-
Your document compiles without any complains, but it does not cite the article and has no \printbibliography. After adding that, it shows the strike-through D character in the bibliography correctly –  Christian Hupfer Jul 10 '14 at 20:06
The problem are the additional braces around the surname: type Author = {Dragomir \v{Z}. {\DJ}okovi\'c}, –  egreg Jul 10 '14 at 20:26
@egreg: I used the .bib file by the OP and there was no error message and the references showed up exactly like the screen shot in your answer. Hm, strange... –  Christian Hupfer Jul 10 '14 at 21:49
@ChristianHupfer I got exactly the OP's error. What version of Biber are you running? –  egreg Jul 10 '14 at 21:55
Maybe the problem just shows with 1.9; but the input is wrong anyway. –  egreg Jul 10 '14 at 22:01

By typing

Author = {Dragomir \v{Z}. {{\DJ}okovi\'c}},


you're basically telling Biber that the author has a single letter family name and this confuses the parser.

The following works without problems (I used filecontents* just to make the example selfcontained).

\begin{filecontents*}{\jobname.bib}
@Article{zbMATH00205607,
Author = {Dragomir \v{Z}. {\DJ}okovi\'c},
Title = {Williamson matrices of order $4n$ for $n = 33, 35, 39$.},
Journal = {Discrete Math.},
Volume = {115},
Number = {1-3},
Pages = {267--271},
Year = {1993},
Publisher = {Elsevier Science B.V. (North-Holland), Amsterdam}
}
\end{filecontents*}

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\usepackage[backend=biber]{biblatex}

You can avoid loading inputenc`, but it's better if you do. I'd also avoid doubling braces in fields. The only field that can be affected by case change is the title. Just brace the words in titles that must keep the case of letters, such as names (the first word will never be changed).