I'm struggling with the natbib-package. I have spent an aweful lot of time on this problem, and it just won't work. After multiple citations, I want them to appear in a sorted and compressed manner, i.e [2-4,10,20-23] instead of [10,20,2,4,3,21,22,23]. I REALLY hope one of you can help me. I would be truly grateful!hope one of you can help me. I would be truly grateful!
I'm new to LaTeX,so please bear with me

My source code is something like this:
Code: Select all
\documentclass[12pt]{report}
\usepackage{ramsstyle, float, acronym, pbox, color, xcolor, colortbl, hhline, rotating, enumerate, subfigure, caption, tocloft, url, footmisc, amsmath, multirow, amsfonts, array, caption, subfigure, setspace, inputenc, tikz}
\hypersetup{linkcolor=black,citecolor=black,urlcolor=black}
\usepackage[square, numbers, comma, sort&compress]{natbib}
\begin{document}
\cite{A, B, C, D}
\bibliographystyle{unsrtnat}
\bibliography{bibliography/bibl}
\end{document}
Miss E