latex: natbib issue

I was writing a paper and found out that if I use multiple citations together they appear rather awkwardly in separate square brackets (e.g. [1], [2], [3]). What I wanted is to have them within one bracket and even better to be as a sequence. Solution to this is to use the NATBIB package and then use the citation labels separated by comma within one \cite command. For example:

\usepackage[square, comma, sort&compress]{natbib}


Should produce the output [1-3] if they are citations 1,2, and 3 or [2,5,7] if they are 2,5 and 7. However, with newer natbib style files there is a weired problem, which shows the error “natbib Error: Bibliography not compatible with author-year citations”. A simple solution to this problem is to use “numbers” option with the package.

\usepackage[numbers,square, comma, sort&compress]{natbib}

:The thesis:

Whilst studying on running the code with epuck robots, this month, I would like to complete the following chapters:

Chapter 1: Introduction -> Completed

Chapter 3: Biological and Artificial Immune Systems

Chapter 4: A Model and Simulation of Granuloma Formation -> First draft of ICARIS paper hopefully

Chapter 6: Result and Analysis From Simulation -> Completed (Submitted to Alan and Jon for further discussion)



Excerpt from chapter 1 of the thesis…

In this introductory chapter, we present both a motivation and overview of the work detailed in this thesis. First, section 1.1 provides the thesis motivation and inspiration by describing the background work. This is followed by section 1.2 with an examination of the structure and content of the thesis, stating our goal, research questions and contribution of the research.

1.1      Motivation
Despite the enormous bio-inspired algorithms that have been developed, there is few that addresses on how bio-inspired algorithm should be developed and where it should be applied to. The motivation behind the work presented in this thesis is to investigate the issues within the context of immuno-engineering that develops a biologically-inspired algorithm to be applied to issues in fault tolerance in swarm robotic systems.