I am trying to compile a .tex file using pdflatex and I get the following two kinds of errors:
Package natbib Warning: Citation `give-citation' on page 14 undefined on input line 41.
! Undefined control sequence.
<argument> ...e \NAT@cmt \fi \if \relax \NAT@date \relax \else \NAT@@close \...
l.46 ... information is available \cite{}
It works smoothly with pdflatex on my mac.
Another error that I get on this linux box (again using pdflatex) is:
! LaTeX Error: Unknown graphics extension: .eps.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
....
l.12 ...\includegraphics[width=4.2in]{tree.eps}
These errors appear quite frequently, they are all over the document. Is it possible to fix them?
Best Answer
The
Undefined control sequence
is because a macro is not defined. Most likely one of your packages (natbib
or a related one) is outdated. Simply update your LaTeX installation and try it again. Also have a look in thelog
file for warnings which sound like "package has been requested in version <...> but only version <...> was found" or similar.The second error is because you are trying to use a EPS with
pdflatex
which doesn't support this format. Either convert this file to a PDF using e.g. theepstopdf
program or you can load theepstopdf
package to do this automatically. This however requires that the option-shell-escape
is used.