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:
  1. \documentclass[a4paper,12pt]{report}
  2.  
  3. \usepackage[numbers]{natbib}
  4. \bibliographystyle{unsrt}
  5.  
  6. \begin{document}
  7.  
  8. Following \citet{SEWTHA} we will evaluate everything in terms of etc.
  9.  
  10. \bibliography{MWEsus}
  11.  
  12. \end{document}


with MWEsus.bib as follows:
  1. @BOOK{SEWTHA,
  2. author = {MacKay, David J. C.},
  3. title={Sustainable Energy -- without the hot air},
  4. year={2008},
  5. publisher={UIT Cambridge},
  6. note={ISBN 978-0-9544529-3-3. Available free online from www.withouthotair.com},
  7. }


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.

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm
Location: Colombia

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

Hi,

replace

  1. \bibliographystyle{unsrt}


with

  1. \bibliographystyle{unsrtnat}
1,1,2,3,5,8,13,21,34,55,89,144,233,...

Link:
BBcode:
HTML:
Hide post links
Show post links

glenton
Posts: 2
Joined: Wed Dec 02, 2009 4:54 am

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

Genius!

Link:
BBcode:
HTML:
Hide post links
Show post links


Return to “General”

Who is online

Users browsing this forum: Bing [Bot] and 4 guests