views:

7711

answers:

2

How do I cite authors in Latex?

I tried using natbib package

---- doc.tex ----

...
\usepackage{natbib}
...
\citeauthor{736184}
...

---- doc.bib ----

@inproceedings{736184,
     author = {Broder, Andrei Z.},
...

but all I get is (author?) (in bold).

+1  A: 

http://en.wikibooks.org/wiki/LaTeX/Bibliography_Management

The simplest way is the one described in section "Embed system". You provide a list of sources and refer to them in text by \cite{ReferenceKey}.

I love Wikipedia\cite{Wikipedia}.

\begin{thebibliography}{2}

\bibitem{Wikipedia}
  Wikipedia,
  bla bla bla.

\bibitem{OtherItem}
  Other Title,
  other bla bla.

\end{thebibliography}
zilupe
No, this way you won't cite authors by name. Not voting this down because it's correct, if we disregard the fact that the question was about natbib, actually :)
volodyako
The question was about citing author. natbib happens to provide such functionality.
Alexandru
Oops, sorry. Didn't imagine there is such a thing as citing an author.
zilupe
+11  A: 
las3rjock
**plainnat** was my problem. I didn't know that natbib uses different styles. I used **alpha** and I should have used **alphanat**. Unfortunately I do not have alphanat.bst and I couldn't find the file on internet (though the page you indicated says it provided by default). Do you know where to get it from?Also for some reason I don't see the indexes (eg. [4]) when using plainnat. Why?
Alexandru
Whoops, there is no alphanat.bst--I've fixed the Wikibooks article (I wrote the table of natbib-compatible styles ;-) ). I believe plainnat.bst is the style you're looking for--the *plain* and *alpha* citation format appears to be the same, it's just that in the bibliography, *plain* uses numbers for the cross-references, whereas *alpha* uses abbreviated last names and two-digit years. natbib defaults to author-year cross-references, but it can also do numerical cross-references if you use "\usepackage[numbers]{natbib}" instead of "\usepackage{natbib}"
las3rjock
I still have some problems obtaining numbers in the biography!instead of[4] Author, Title,I get onlyAuthor, TitleI tried \usepackage[numbers]{natbib} and "plainnat" with no success.
Alexandru
I've updated my example and included an image of the output. I hope that will help you track down your problem.
las3rjock