I really do not know how to ask this question.
I am trying to compile a tex document (\documentclass[a4paper]{report}), in which for the bibliography I have to include many references whose bibtex format is like:
@ARTICLE{Zand+94,
author = {{in 't Zand}, J.~J.~M. and {Heise}, J. and {Jager}, R.},
title = "{The optimum open fraction of coded apertures. With an application to the wide field X-ray cameras of SAX}",
journal = {\aap},
keywords = {INSTRUMENTATION: DETECTORS, TECHNIQUES: IMAGE PROCESSING, TELESCOPES, X-RAYS: GENERAL},
year = 1994,
month = aug,
volume = 288,
pages = {665-674},
adsurl = {http://adsabs.harvard.edu/abs/1994A\%26A...288..665I},
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}
To define the journal, I have found this official website where definitions of the journals abbreviations are given as \def\aap{\ref@jnl{A\&A}}.
However, when I compile with pdflatex bibtex (a variable number of times), I receive the warning:
LaTeX Warning: Reference `@' on page 35 undefined on input line 92.
for each reference where the voice journal is included in the bibtex text.
The line 92 is where the command printbibliography is given in the main tex file.
As a consequence of the warning, the reference in the bibliography is mispelled:
in ’t Zand, J. J. M., J. Heise, and R. Jager (Aug. 1994). “The optimum
open fraction of coded apertures. With an application to the wide field
X-ray cameras of SAX”. In: ??jnlA&A 288, pp. 665–674.
How can I fix it?
\makeatletter? Also, a definition of\ref@jnlis given in the link I posted, but not totally sure it works properly, how would you define it? – Py-ser Jun 24 '15 at 15:50\def\ref@jnl#1{{\jnl@style#1}}with those? – Py-ser Jun 24 '15 at 16:10@commands – David Carlisle Jun 24 '15 at 16:13\makeatletterand\makeatother, or not, I still receive the error:! Undefined control sequence. \aap ->\ref@jnl {A\&A}or! Undefined control sequence. \ref@jnl #1->{\jnl@style #1}– Py-ser Jun 24 '15 at 16:17\documentclass(preferably usingarticle) to\end{document}that demonstrates the error. I can not guess what commands you have or what is wrong from fragments in comments. – David Carlisle Jun 24 '15 at 16:20