# How do I cite author in LaTeX?

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).

-

## migrated from stackoverflow.comAug 30 '12 at 1:39

This question came from our site for professional and enthusiast programmers.

At a bare minimum, your LaTeX source file needs to contain these elements for \citeauthor to work:

---- doc.tex ----

\documentclass{article}
\usepackage[numbers]{natbib}

\begin{document}
\citeauthor{goossens93}

\bibliographystyle{plainnat}
\bibliography{doc}
\end{document}


---- doc.bib ----

@book{goossens93,
author    = "Michel Goossens and Frank Mittlebach and Alexander Samarin",
title     = "The LaTeX Companion",
year      = "1993",
}


The correct compilation cycle for the document is then as follows:

latex doc
bibtex doc
latex doc
latex doc


The first compilation generates the list of cited works for BibTeX. Then BibTeX uses that information to generate a .bbl file from doc.bib containing all of the citations formatted according to the bibliography style you choose. The second compilation incorporates the .bbl into the document, and the third compilation updates all of the cross-references (e.g. citations).

Here is the output for the example above:

-
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 Jun 3 '09 at 20:26
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 Jun 3 '09 at 21:47
I still have some problems obtaining numbers in the biography! instead of [4] Author, Title, I get only Author, Title I tried \usepackage[numbers]{natbib} and "plainnat" with no success. –  Alexandru Jun 4 '09 at 9:11
I've updated my example and included an image of the output. I hope that will help you track down your problem. –  las3rjock Jun 4 '09 at 17:49
The same thing also happens when using other bibliography styles. For exaple, using \bibliographystyle{unsrt} with command \citeauthor{some_id} produces (author?), whereas using \bibliographystyle{unsrtnat} with \citeauthor{some_id} produces the desired result. –  tjanez Sep 3 '13 at 8:30

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}

-
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 Jun 3 '09 at 16:04
The question was about citing author. natbib happens to provide such functionality. –  Alexandru Jun 4 '09 at 9:12
Oops, sorry. Didn't imagine there is such a thing as citing an author. –  zilupe Jun 6 '09 at 9:33