I'm trying to prepare a journal submission, and I'm having trouble getting natbib to play nicely.
When I include
natbib
in my document, it gives me the following error:! Undefined control sequence \chapter ...ace{10\p@ }}\algocf@original@chapter l.1 \begin{thebibliography}{17}
This isn't such a huge deal to me -- I'm fine working around it. The bigger problem that I have is...
When I disable
natbib
, the citation keys and references look horrible. For example, if I have the followingbibtex
entry@article{Day06, author = {T.E.~Day and J.T.~Napoli and P.C.~Kuo}, title = {Scheduling the Resident 80-Hour Work Week: An Operations Research Algorithm}, journal = {Current Surgery}, volume = {63}, number = {2}, month = {Mar.-Apr.}, year = {2006}, pages = {136-141} }
whenever I use
\cite{Day06}
it produces [Day et al(2006)Day, Napoli, and Kuo] in my text, which looks awful. Even worse, the entry in the references section looks terrible, too:[Day et al(2006)Day, Napoli, and Kuo] Day T, Napoli J, Kuo P (2006) Scheduling the resident 80-hour work week: An operations research algorithm. Current Surgery 63(2):136-141
I don't know why it's including the (horribly-mangled) key in the citation next to the author list.
Any suggestions? Has anyone else dealt with this before?
Edited to more accurately reflect the problem.
algorithm2e
package. Please add a minimal working example (MWE) that illustrates your problem. – egreg Mar 17 '12 at 18:14