Skip to main content

Posts

Showing posts from December, 2012

Sumatra PDF Viewer for LaTeX users on Windows

If you use LaTeX on Windows, or in particular pdflatex , you must have noticed that viewing the resulting PDF file is not as easy as you would like it to be. Many PDF readers cannot update PDF automatically when you make changes, and you will have to close PDF reader and open PDF again. Sumatra PDF on other hand will read new PDF as soon as it is updated and you don't and will save your time. 

Harvard Style citation in Latex

Here I will explain how I use natbib and agsm from harvard package for Harvard style of references. Include natbib by using \usepackage{natbib}   set  citesep  (separation between two citations in the same place) and  aysep  (separation between author and year in a citation) using \setcitestyle{citesep={;}, aysep={,}}  set bibliograpgy style to agsm my using \bibliographystyle{agsm} and the cite as required using \cite{key} , or \citep{key} a complete reference can be found here Example \documentclass[a4paper,10pt]{report}  \usepackage{natbib} \setcitestyle{citesep={;}, aysep={,}} \begin{document} \chapter{Chapter 1} This is a \citep{key}.  \bibliographystyle{agsm} \bibliography{library} \addcontentsline{toc}{chapter}{References} \end{document}