One of my citations is breaking my document. If I build it with the citation uncalled in the document and a fresh .bbl file, the document builds fine. If I try and call the citation, it breaks the build process and even if I remove the citation, I have to rebuild the .bbl file for a proper build.
Here is the citation, its quite small and simple but something is happening that I can't seem to fix.
@misc{Perez1,
author = {Perez, Hernain David},
booktitle = {CSCMP's Supply Chain Quarterly},
pages = {4},
title = {{Supply Chain Strategies: Which one hits the mark?}},
url = {http://www.supplychainquarterly.com/print/supplychainstrategieswhichonehitsthemark},
year = {2013}
}
I should state that I'm importing my .bib file from Mendeley and haven't had a problem with any other citation. I've move the citation to the first entry on the bib file.
I'm calling the citation with \citet{Perez1}
and my master document is using \usepackage[round]{natbib}
. The error I'm receiving is an Undefined control sequence.\Generic Error, not exactly helpful.
MWE:
\usepackage[round]{natbib}
\begin{document}
Test citation \citep{Perez1}.
\bibliographystyle{plainnat}
\bibliography{Skripsie}
\end{document}
\@outlinefile=\write3 Package natbib Warning: Citation
Perez1' on
\hobx'), type
page 1 undefined on input line 15.
(C:\Users\reece\Documents\Engineering\Skripsie\Test.bbl [1
{C:/Users/reece/AppData/Local/MiKTeX/2.9/pdftex/config/pdftex.map}] !
Undefined control sequence. \GenericError ... 4 \errhelp \@err@ ...
l.12 ...strategieswhichonehitsthemark} . The control sequence at
the end of the top line of your error message was never \def'ed. If
you have misspelled it (e.g.,I' and the correct
I\hbox'). Otherwise just continue, and I'll forget
spelling (e.g.,
about whatever was undefined.
Best Answer
There was a problem with the
url
field (I suppose direcly copied on the web), which probably had some invisible character in it. I retyped the url, changed the category from@misc
to@article
since it comes from a journal on line, loaded theurl
package to break long urls at the end of line.I also propose to use
bblatex
with optionnatbib
(it emulates the\citet
andcitep
commands fromnatbib
) andstyle=authoryear
. The advantage, withbackend=biber
is you can input accented letters directly on the keyboard, since biber understandsutf8
.I corrected the url, which wasn't exact, and the author's first name, which precisely has an accented letter.
Code with natbib + bibtex:
.bib file for bibtex
Code with biblatex + biber:*
.bib file for biber;