Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am trying to use natbib and agsm for harvard style in my work but without success. Given the code below I get output: ...(?) in the pdf and a warning in the console:

pdflatex> Package natbib Warning: There were undefined citations.

If I change the bibstyle to plainnat it works.

Whats wrong in this example? how can I make agsm work as bibstyle?

\documentclass{article}
\usepackage{natbib}
\usepackage{filecontents}

\bibliographystyle{agsm}
\begin{document}

\begin{filecontents}{mybib.bib}
@book{goossens93,
        author = "Michel Goossens and Frank Mittlebach and Alexander Samarin",
        title = "The Latex Companion",
        year = "1993",
        publisher = "Addison-Wesley",
        address = "Reading, Massachusetts"
} 
\end{filecontents}

...test\citep{goossens93}

\bibliography{mybib}
\end{document}
share|improve this question

closed as off-topic by egreg, Werner, lockstep, mafp, Guido Jul 24 '13 at 21:04

  • This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

1  
It is working fine for me. Can you make sure that agsm.bst is available in texmf path? You can check it by kpsewhich agsm.bst in command-line. If the package lists, then can you please post the log file of bibtex. –  Jagath AR Jul 24 '13 at 14:34
    
kpsewhich agsm.bst gives no output when used in the command line. –  Adri Jul 24 '13 at 14:38
    
Then, it seems that agsm.bst is missing. Can you please download it from ctan and copy to your working directory and try pdflatex bibtex pdflatex pdflatex on file. –  Jagath AR Jul 24 '13 at 14:41
    
Welcome to TeX.SX! You can have a look on our our starter page to familiarize yourself further with our format. –  Claudio Fiandrino Jul 24 '13 at 14:46
4  
This question appears to be off-topic because it is about a missing .bst file –  egreg Jul 24 '13 at 20:30