Pages

mercredi 24 avril 2013

install natlib in mac

Install :
1) kpsewhich -var-value TEXMFHOME
--- /Users/username/Library/texmf
2) Download the natlib from CTAN to /Users/username/Library/texmf/tex/natlib
3) Dowload the natlib.sty to /Users/username/Library/texmf/latex
3) sudo texhash
4) pdflatex file.tex
    bibtex file.aux
    pdflatex file.tex
    pdflatex file.tex


In the file.tex:
\usepackage[square]{natbib}
\bibpunct{(}{)}{,}{a}{}{,}

\bibliographystyle{plainnat}
\bibliography{myref}
Note: the myref is the myref.bib which contains the references.

In the file myref.bib:
The format should be correct. For example:


@article{itrf2008,
year={2011},
issn={0949-7714},
journal={Journal of Geodesy},
volume={85},
number={8},
doi={10.1007/s00190-011-0444-4},
title={ITRF2008: an improved solution of the international terrestrial reference frame},
url={http://dx.doi.org/10.1007/s00190-011-0444-4},
publisher={Springer-Verlag},
keywords={Reference systems; Reference frames; ITRF; Earth rotation},
author={Altamimi, Zuheir and Collilieux, Xavier and Métivier, Laurent},
pages={457-473},
language={English}
}

Get the bibtex format of the paper either through http://adsabs.harvard.edu/, or through the journal website.

Aucun commentaire:

Enregistrer un commentaire