Friday 19 July 2013

Reference numbering in Latex

Problems

Multiple references may cause a very weird problem.
For example, some time this VDM [2][1] is gotten from the LaTeX \cite{vdm2001} \cite{vdm1999}.
The order in reference is not correct. The right order will not depend on which citation is placed first and it should depend on which reference is referred first.

Solution 1

Use the cite package
\usepackage{cite} \cite{vdm2001, vdm1999}
This will result in VDM [1,2]

Solution 2

Use the natbib package with options
\usepackage[sort&compress]{natbib}
  • \citet for textual citations
  • \citep for parenthetical citations
For example
  • \citet{vdm2001}
  • \citep{vdm2001}
  • \citet[p.~20]{vdm2001}
  • \citet[chap.~2]{vdm2001}
  • \citet{vdm2001,vdm1999}

No comments :

Post a Comment