Wednesday, November 17, 2010

LaTeX with JabRef and use Havard bibliography style (and where to put those TeX .bst files and .sty files)

1. Go to the JabRef database folder and put .bib extension after the database filename, in case there is no extension designated.
2. Make a symbolic link for the bibliography database file.
ln -s ~/foldname/of/JabRef-database-folder/ bib
Then, put the symbolic link in /home/username/texmf
3. Extract harvard bibliography style zip file, which is downloadable at CTAN page. Put all the .bst(bibliography style) files in /home/username/texmf/bibtex/bst and .sty files in /home/username/texmf/tex/latex/my_styles
4. In preambule, put \usepackage{harvard} and \bibliographystyle{agsm} right after \begin{document}.
5. Put, before \end{document},
\addcontentsline{toc}{chapter}{Reference}
\bibliography{/home/username/texmf/bib/filename-without-.bib-extension}


We're done. Compile! latex-bibtex-latex-latex.

1 comment:

  1. Hi
    What do you mean with
    " Compile! latex-bibtex-latex-latex "
    yours
    Luis

    ReplyDelete