Text FormattingUndefined control sequence error

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Vishal_joshi
Posts: 3
Joined: Mon Sep 12, 2011 10:25 pm

Undefined control sequence error

Post by Vishal_joshi »

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.

Recommended reading 2024:

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

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

Post by Stefan Kottwitz »

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
LaTeX.org admin
Vishal_joshi
Posts: 3
Joined: Mon Sep 12, 2011 10:25 pm

Re: Undefined control sequence error

Post by Vishal_joshi »

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.
Vishal_joshi
Posts: 3
Joined: Mon Sep 12, 2011 10:25 pm

Re: Undefined control sequence error

Post by Vishal_joshi »

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?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Undefined control sequence error

Post by Stefan Kottwitz »

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:

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}
\aap simply prints A&A in Roman, so you could make it simpler and write in your preamble

Code: Select all

\newcommand{\aap}{A\&A}
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
LaTeX.org admin
Post Reply