LaTeX forum ⇒ Generalcitet giving blank author!

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

citet giving blank author!

Postby glenton » Mon Mar 08, 2010 6:24 am

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:
\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:
@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 2021:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

citet giving blank author!

Postby gmedina » Mon Mar 08, 2010 6:54 am

Hi,

replace

\bibliographystyle{unsrt}


with

\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!

Postby glenton » Wed Mar 10, 2010 4:58 am

Genius!


Return to “General”

Who is online

Users browsing this forum: No registered users and 7 guests