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 wan't to use harvard style in my paper. I'm using TeXMaker and natbib. I got agsm.bst downloaded. But it's not helping. I'm using these commands

\documentclass{article}
\usepackage{natbib}
\begin{document}

\bibliography{FILE}
\bibliographystyle{agsm}  % that loads file agsm.bst 
% it's working fine for \bibliographystyle{plain}, but that's not the referencing I want
\end{document} 

I doubt it's a problem with the way I'm saving agsm. Can someone help me out?

share|improve this question
1  
In the code given in your post, you are loading the file pjgsm.bst, not agsm.bst, is this a typo? What error message do you get? –  Corentin Oct 16 '12 at 12:51
1  
@Rahul: I've added a comment in your not complete MWE to make clear where you load the file pjgsm.bst instead of the wanted agsm.bst. Please make always a complete minimal working example (MWE). I added \documentclass{article} to your MWE. Please correct it, if you need something else ... –  Kurt Oct 16 '12 at 13:17
    
Welcome to TeX.SE. –  Peter Grill Oct 16 '12 at 15:49
    
@Corentin, i'm sorry, that's a typo, should be {agsm}. Thanks Kurt, you did a perfect editing. But my question still remains unanswered. –  Rahul Oct 17 '12 at 11:12
1  
As you confirmed that pjgsm is a typo, I took the liberty of editing your post to replace this with agsm as you meant. –  Corentin Oct 17 '12 at 14:51
show 1 more comment

1 Answer

i was not saving agsm as .bst file, instead it was saved as LATEX style file. I couldn't create a .bst file so just made a copy of amsplain.bst which was already there and copied 'agsm' code to it in place of 'amsplain'. It's working perfect now.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.