Generalcitet giving blank author!

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
glenton
Posts: 2
Joined: Wed Dec 02, 2009 4:54 am

citet giving blank author!

Post by glenton »

Hi All

I'm writing a document, and using natbib to make a bibliographic reference with the author's name using \citet. Unfortunately, it seems to be returning a blank for author.

Here's a minimal working example:

Code: Select all

\documentclass[a4paper,12pt]{report}

\usepackage[numbers]{natbib}
\bibliographystyle{unsrt}

\begin{document}

Following \citet{SEWTHA} we will evaluate everything in terms of etc.

\bibliography{MWEsus}

\end{document}
with MWEsus.bib as follows:

Code: Select all

@BOOK{SEWTHA,
author = {MacKay, David J. C.},
title={Sustainable Energy -- without the hot air},
year={2008},
publisher={UIT Cambridge},
note={ISBN 978-0-9544529-3-3. Available free online from www.withouthotair.com},
}
The pdf is a single line with:
"Following [1] we will evaluate everything in terms of etc."

I'm using Ubuntu and Texmaker. There's no errors either in the pdflatex or the bibtex running. And if I do a normal dvi producing run, the same omission occurs.

For some reason it returns a blank space for author. Anyone have any idea why?! Or where I could look for help.

Many thanks
Last edited by glenton on Wed Mar 10, 2010 4:59 am, edited 1 time in total.

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

citet giving blank author!

Post by gmedina »

Hi,

replace

Code: Select all

\bibliographystyle{unsrt}
with

Code: Select all

\bibliographystyle{unsrtnat}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
glenton
Posts: 2
Joined: Wed Dec 02, 2009 4:54 am

Re: citet giving blank author!

Post by glenton »

Genius!
Post Reply