giovedì 29 maggio 2014

Latex - Reference capital title

While writing an latex article one issue that I faced regards the bibliography.
In particular, I was looking for a way to include a multiple reference such as [1-4] with the dash in the middle. To do that I found out two options:

  1. \usepackage[numbers,sort&compress]{natbib} % multiple reference
    That works but it has a small issue. I noticed that the "reference" title was written in lower case, left-aligned and not anymore in capital at it was before including this package.

    or
  2. \usepackage{cite} % for multiple references with the dash as separator
    This was the answer I was looking for.  
By the way to write multiple references:
\cite{ref1, ref2, ref3, ref4}

Another small hint. While writing:

\begin{thebibliography}{number}
*
*
\end{thebibliography}

the number represents how many \bibitem  entries you want to include. If this number if less than the real entries you will have a space formatting issue. 

Hope it helps.