Hi all,
I have starated using latex since few weeks only so I am new to Latex.
When I run bibtex followed by latex it gives following error:
!undefined control sequence.
<recently read> \aap
1.13 \newblock \emph{\aap}......
?
I am using natbib package and plainnat.bst style.
Kindly help sorting out this problem.
Thank you.
Vishal.
Text Formatting ⇒ Undefined control sequence error
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
Re: Undefined control sequence error
Hi Vishal,
welcome to the board!
What do you mean by \aap? This command is not defined. Either define it yourself, or load a package which provides that, what you mean.
Stefan
welcome to the board!
What do you mean by \aap? This command is not defined. Either define it yourself, or load a package which provides that, what you mean.
Stefan
LaTeX.org admin
-
- Posts: 3
- Joined: Mon Sep 12, 2011 10:25 pm
Re: Undefined control sequence error
Hi Stefan,
Thank you for your kind reply.
Actually, I have made a .bib file using JabRef and then run bibtex which makes .bbl file . Now, the command line containing \aap is written in that .bbl file.
I do not know which package I should add which contain this command.
By the way, I am using miktex in winedt.
Regards,
Vishal.
Thank you for your kind reply.
Actually, I have made a .bib file using JabRef and then run bibtex which makes .bbl file . Now, the command line containing \aap is written in that .bbl file.
I do not know which package I should add which contain this command.
By the way, I am using miktex in winedt.
Regards,
Vishal.
-
- Posts: 3
- Joined: Mon Sep 12, 2011 10:25 pm
Re: Undefined control sequence error
Just now come to know that \aap is abbreviation of journal of astronomy and astrophysics.
This means that my program can not understand this abbreviation.
Can any of you through some light?
This means that my program can not understand this abbreviation.
Can any of you through some light?
- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
Undefined control sequence error
Ok, I can see this abbreviation for example in the aastex guide in table 1 on page two, there \aap is mentioned for Astronomy and Astrophysics, as you added.
If exactly this style is required, you could take that definition from aastex.cls source, here's a complete example:
\aap simply prints A&A in Roman, so you could make it simpler and write in your preamble
Similar for other commands you might see missing, or take the definition from aastex.cls or a style or class file which matches your document and style.
Stefan
If exactly this style is required, you could take that definition from aastex.cls source, here's a complete example:
Code: Select all
\documentclass{article}
\makeatletter
\let\jnl@style=\rmfamily
\def\ref@jnl#1{{\jnl@style#1}}%
\newcommand\aap{\ref@jnl{A\&A}}%
% Astronomy and Astrophysics
\makeatother
\begin{document}
\aap
\end{document}
Code: Select all
\newcommand{\aap}{A\&A}
Stefan
LaTeX.org admin