# Problem compiling Bibliography on Gummi

I am trying to create cites and bibliography,in ApJ style, using the tex commands below using Gummi.

\documentclass[12pt]{article}

\usepackage{ natbib}
\citestyle{aa}
\begin{document}

\section{Introduction}

\cite{texbook}

\section{Conclusion}

\cite{Narendra_1990}

\bibliography{Bib2}{}
\bibliographystyle{apj}

\end{document}


However, I keep getting the following error:

/tmp/.LatexEssay.tex.bbl:8: Undefined control sequence.
l.8 {Worthey}, G. 1994, \apjs
, 95, 107
/tmp/.LatexEssay.tex.bbl:8:  ==> Fatal error occurred, no output   PDF          file    produced!
Transcript written on /tmp/.LatexEssay.tex.log.


My Bibtex file is:

    @Article{Narendra_1990,
author =       {K.S.Narendra and K.Parthsarathy},
title =        {Identification and Control of Dynamical System
using Neural Networks},
journal =      "IEENN",
year =         {1990},
volume =    {1},
number =    {1},
month =     {},
pages =     {4-27},
note =      {},
annote =    {}
@BOOK{texbook,
author = "Donald E. Knuth",
title= "The {{\TeX}book}",
year = 1984
}
@ARTICLE{1994ApJS...95..107W,
author = {{Worthey}, G.},
title = "{Comprehensive stellar population models and the disentanglement  of age and metallicity effects}",
journal = {\apjs},
year =  1994,
month = nov,
volume = 95,
pages = {107-149},
doi = {10.1086/192096},
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}


If I cite the texbook and Narendra_1990 references I have no problem. It is only when I include the 1994ApJS...95..107W reference that the error occurs.

Any help appreciated!

-

As you can read in the given error message

/tmp/.LatexEssay.tex.bbl:8: Undefined control sequence.
l.8 {Worthey}, G. 1994, \apjs
, 95, 107


you have an undefined control sequence \apjs that causes the error. I guess it should contain the name of a journal. So add the line @string {apjs = {The correct name of the journal}} (add the correct name please) to your bib file. With a little pretty printing it could look like this:

@string {apjs  = {The correct name of the journal}}
@ARTICLE{1994ApJS...95..107W,
author  = {{Worthey}, G.},
title   = {{Comprehensive stellar population models and the disentanglement
of age and metallicity effects}},
journal = apjs,
year    = {1994},
month   = nov,
volume  = {95},
pages   = {107--149},
doi     = {10.1086/192096},

Did you recognised the -- in field pages?
I do not know a file apj-jours.bib2. Nor do I have a file apj-jours.bib. The argument for \bibliography contains only the file name, no file name extention bib. To load two bib files you call \bibliography{file1,file2}. – Kurt Aug 22 '12 at 23:06
Where do you read apj-jours.bib2? Do you have special files from your institution? – Kurt Aug 22 '12 at 23:29