BibTeX, biblatex and biberCitation causes Error about undefined Control Sequence

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
mdkurtz
Posts: 3
Joined: Mon Jan 07, 2013 10:13 pm

Citation causes Error about undefined Control Sequence

Post by mdkurtz »

Hi,

I am having trouble using BibTeX for my report. My main file is called "Report.tex". Within this directory I have another directory with additional source files. I am including them in my report using \input{introduction.tex}. Now within introduction.tex, I am trying to do \cite{ref_from_bib}. I am doing LaTeX, BibTeX, LaTeX, LaTeX, for my build (using Kile), and I get the error:

Code: Select all

finished with exit code 1
./Chapters/Introduction.tex:13:Undefined control sequence
mainly from \cite{ref_from_bib}
However, it does actually include the reference when I open the final result. I would just like to know why there is an error.

In "myRefs.bib" I have this:

Code: Select all

@Book{ref_from_bib,
  author = {J. D. Anderson},
  title = {Modern Compressible Flow},
  edition = {2nd},
  publisher = {McGraw-Hill},
  year = 1990
}
Thank you very much for the help!

Mike


PS: I am new to the forum, so if I left out any information, ask and I will let you know.

EDIT: Upon further trials, changing the document class to report gives no errors with the same setup. Is there something in the bibliography style or class file I could alter to make it work? Thanks again!
Attachments
Report.tex
(748 Bytes) Downloaded 269 times
Introduction.tex
(882 Bytes) Downloaded 264 times
aiaa-tc.cls
(5.33 KiB) Downloaded 295 times
myRefs.bib
(629 Bytes) Downloaded 270 times
Last edited by mdkurtz on Mon Jan 07, 2013 11:42 pm, edited 5 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10359
Joined: Mon Mar 10, 2008 9:44 pm

Citation causes Error about undefined Control Sequence

Post by Stefan Kottwitz »

Hi Mike,

welcome to the board!

In the file Introduction.tex you wrote \ref{Strehlow:84bk}, I guess you meant \cite{Strehlow:84bk}. Nevertheless, it's unclear. Please post the complete error message, i.e. which control sequence is said to be unknown, or post the .log file as attachment.

Stefan

PS: (In German - Hilfe auf deutsch: Undefined control sequence - wie finde ich heraus, was fehlt?
LaTeX.org admin
mdkurtz
Posts: 3
Joined: Mon Jan 07, 2013 10:13 pm

Re: Citation causes Error about undefined Control Sequence

Post by mdkurtz »

Sorry, that was the incorrect introduction file.

Its fixed now, and I will include the log file to this post.
Attachments
Report.log
(10.91 KiB) Downloaded 302 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10359
Joined: Mon Mar 10, 2008 9:44 pm

Citation causes Error about undefined Control Sequence

Post by Stefan Kottwitz »

So the complete error message is:

Code: Select all

! Undefined control sequence.
<argument> ...citeb \@extra@b@citeb }\citenumfont 
                                                  {\NAT@num }\hyper@natlinkend 
l.13 mainly from Strehlow\cite{Strehlow:84bk}
                                             , which is summarized in this p...
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., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
This error did not occur when I tested it. Furthermore, I noticed in the .log file that you are using a very old version of natbib

Code: Select all

/home/mdkurtz/texmf/tex/latex/natbib.sty
Package: natbib 1998/07/14 6.8c (PWD)
The current version is 2010/09/13 8.31b. I recommend that you update your version.

If an update would be impossible, a workaround could be

Code: Select all

\newcommand*{\citenumfont}{}
in the preamble.

Stefan
LaTeX.org admin
mdkurtz
Posts: 3
Joined: Mon Jan 07, 2013 10:13 pm

Re: Citation causes Error about undefined Control Sequence

Post by mdkurtz »

Stefan,

Thank you very much for your clear and concise help. Once I updated my natbib.sty the error went away. :D

Regards,

Mike
Post Reply