LaTeX forum ⇒ TeXworksBibliography Problems

Information and discussion about TeXworks, an integrated LaTeX environment for several platforms
Posts: 2
Joined: Tue Oct 07, 2014 4:20 am

Bibliography Problems

Postby edstevens » Tue Oct 07, 2014 4:46 am

I know that I am supposed to reproduce the code of a problem, but I am having problems even generating a reproduction.

I had to re-install my operating system due to a Windows crash. I managed to recover my documents but can't get my working paper in Latex to compile correctly.

The error looks like this:

  1. ("C:\MyArticle.bbl"
  2. ! Undefined control sequence.
  3. <argument> \protect \citeauthoryear
  4. {Smith}{Smith...
  5. l.4 Smith}{1999}]{Smith98}

I opened up C:\MyArticle.bbl and it looks like this:

  1. \begin{thebibliography}{}
  3. \bibitem[\protect\citeauthoryear{Smith}{Smith}{1999}]{Smith98}
  4. Smith (1999).
  5. \newblock Article name article name.
  6. \newblock {\em Journal Journal\/}~{\em 89}, 605--618.
  8. \end{thebibliography}

In previous, working versions, C:\MyArticle.bbl looked like this:

  1. \begin{thebibliography}{10}
  3. \bibitem{Smith98}
  4. Smith
  5. \newblock Article name article name.
  6. \newblock {\em Journal Journal}, 89:605--618, 1999.
  8. \end{thebibliography}

So it looks like TeXworks inserted the extra \protect\citeauthoryear tags. How can I get the bibliography when it compiles back to the old state, or get TexWorks to read the \protect\citeauthoryear tags?

Last edited by Stefan Kottwitz on Fri Oct 10, 2014 11:43 am, edited 1 time in total.
Reason: code marked

User avatar
Site Moderator
Posts: 3644
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Tue Oct 07, 2014 9:11 am

Make sure to have an updated TeX-distribution, delete all the auxiliary files and try again.

Right now, it is impossible for me to see a reason for the behaviour described for a lack of information.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

User avatar
Stefan Kottwitz
Site Admin
Posts: 8708
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany

Postby Stefan Kottwitz » Fri Oct 10, 2014 11:47 am

Hi Ed,

welcome to the forum!

It seems that \citeauthoryear is undefined. This is a command of the natbib package. So ensure that you are loading natbib, if not existent add this line to your document preamble:

  1. \usepackage{natbib}

Site admin

Posts: 2
Joined: Tue Oct 07, 2014 4:20 am

Postby edstevens » Mon Oct 20, 2014 9:23 am

Dear Stefan_K,

I could kiss you right now! Your recommended solution worked perfectly. Amazing how a little knowledge can shortcut hours of frustration.

Thanks so much.


Return to “TeXworks”

Who is online

Users browsing this forum: No registered users and 1 guest