# How can I use natbib package with ieeeconf style [closed]

I want to use `ieeeconf` as document class and include `natbib` package.

``````\documentclass[a4paper, 10pt, conference]{ieeeconf}
\usepackage{natbib}
% something here

\bibliography{reference}
``````

I have provided my references in `reference.bib` file. but I get error while compiling with pdflatex and TexWorks.

When I exclude the line:

``````\usepackage{natbib}
``````

I can compile it but what I see in pdf format is:

[Alouani and Rice(1994)]

[[1]]

In the text where I used `\cite{c1}`

and:

[Aluni and Rice(1994)] A. T. Alouani and T. R. Rice. On asynchronous data fusion. pages143-146, 1994*

in the reference section. But what I want is to sort them in numbers format.

Here is one of my `.bib` file's item:

``````@article{c1,
author = {A. T. Alouani and T. R. Rice},
title = {On asynchronous data fusion},
booktitle = {Southeastern Symposium on System Theory},
year = {1994},
pages = {143--146},
masid = {50009577}
}
``````

-

## closed as too localized by Alan Munn, clemens, qubyte, Paul Gaborit, zerothOct 7 '12 at 14:16

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Use the `numbers` option of `natbib`,i.e., `\usepackage[numbers]{natbib}` – Guido Oct 6 '12 at 18:54
Also IEEE has its own style for this class and you can use it via `\bibliographystyle{IEEEtran}\bibliography{reference}` – percusse Oct 6 '12 at 19:08
@Guido I can not use that package as I get error compiling – batista cori Oct 6 '12 at 19:15
@batistacori It works for me. What is the error message? remove all auxiliary files, `.aux`, `.log`, `.bbl`. – Guido Oct 6 '12 at 19:18
I don't understand why this is closed? I know many people using natbib that are very frustrated that they cannot use it with IEEETran. – David Doria Oct 26 '12 at 0:57