LaTeX Books

Cookbook

LaTeX Beginners Guide

Limited discount 50%
coupon code tDRet6Y

click here to read the whole story

LaTeX users online

In total there are 16 users online :: 0 registered, 0 hidden and 16 guests (based on users active over the past 5 minutes)
Most users ever online was 1327 on Tue Nov 05, 2013 7:11 pm

Users browsing this forum: No registered users and 16 guests

citet giving blank author!

LaTeX Forum: General

Add tags LaTeX specific issues not fitting into one of the other forums of this category.

Postby glenton on Mon Mar 8th, 2010

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  •  Open in writeLaTeX
\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  •  Open in writeLaTeX
@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 10th, 2010, edited 1 time in total.
glenton
 
Posts: 2
Joined: Wed Dec 2nd, 2009

Postby gmedina on Mon Mar 8th, 2010

Hi,

replace

Code: Select all  •  Open in writeLaTeX
\bibliographystyle{unsrt}


with

Code: Select all  •  Open in writeLaTeX
\bibliographystyle{unsrtnat}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
User avatar
gmedina
 
Posts: 2313
Joined: Wed Jul 11th, 2007
Location: Colombia

Postby glenton on Wed Mar 10th, 2010

Genius!
glenton
 
Posts: 2
Joined: Wed Dec 2nd, 2009


Return to General

LaTeX users online

Users browsing this forum: No registered users and 16 guests