In my .bib file I have two references under the same reference name (not the authors' name. I guess there should be a professional term for the reference name). When I call that name out of the .bib file I receive an error where \printbibliography is located. The two references are:
@article{lopez2011cavitation,
title={Cavitation in elastomeric solids: I—A defect-growth theory},
author={Lopez-Pamies, Oscar and Idiart, Martin I and Nakamura, Toshio},
journal={Journal of the Mechanics and Physics of Solids},
volume={59},
number={8},
pages={1464--1487},
year={2011},
publisher={Elsevier}
}
@article{lopez2011cavitation,
title={Cavitation in elastomeric solids: II—Onset-of-cavitation surfaces for Neo-Hookean materials},
author={Lopez-Pamies, Oscar and Nakamura, Toshio and Idiart, Mart{\'\i}n I},
journal={Journal of the Mechanics and Physics of Solids},
volume={59},
number={8},
pages={1488--1505},
year={2011},
publisher={Elsevier}
}
How can I cite these two references that can be differentialble in the text. Any suggestion is appreciated.
MWE
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[backend=biber,style=chicago-authordate,]{biblatex}
\addbibresource{TexStackExc.bib}
\begin{document}
\renewcommand{\labelenumi}{\arabic{enumi}}
\begin{enumerate}
\item \cite{alopez2011cavitation}
\item \cite{blopez2011cavitation}
\end{enumerate}
\newpage
\printbibliography
\end{document}
And the content of TexStackExc.bib is
@article{alopez2011cavitation,
title={Cavitation in elastomeric solids: I—A defect-growth theory},
author={Lopez-Pamies, Oscar and Idiart, Martin I and Nakamura, Toshio},
journal={Journal of the Mechanics and Physics of Solids},
volume={59},
number={8},
pages={1464--1487},
year={2011},
publisher={Elsevier}
}
@article{blopez2011cavitation,
title={Cavitation in elastomeric solids: II—Onset-of-cavitation surfaces for Neo-Hookean materials},
author={Lopez-Pamies, Oscar and Nakamura, Toshio and Idiart, Martin I},
journal={Journal of the Mechanics and Physics of Solids},
volume={59},
number={8},
pages={1488--1505},
year={2011},
publisher={Elsevier}
}
Answer as an edit
The source of error was the author name, Mart{\'\i}n. I replaced {\'\i} with i and also deleted the temporary files and now it prints the bibliography with no error.
\printbibliography.'babel/polyglossia' detected but 'csquotes' missing.
Plus I cannot cite any other key after these two in
– Reza Dec 29 '17 at 17:57.bibfile.\'\iwithíin the bib-file. – Ulrike Fischer Dec 29 '17 at 18:04I—AandII—Onsetcould also be problematic if your settings are not right. But Ulrike's guess about í is good. – moewe Dec 29 '17 at 18:09\'\ias well as the dash. But seems the problem is the keys. Because with the original names it well typesetes everything. Without printing the bibliography I receive no error. – Reza Dec 29 '17 at 18:13íbeing problematic here. I can compile your second MWE without a problem, but if I add inMart{\'\i}nagain, I get the errorError: Unicode char ́ (U+301)– moewe Dec 29 '17 at 18:21