Hello Suppose I have 3 references that goes one after another i.e [1][2][3].
But I want to see [1]-[3].
What should I do.
Thank you.
Hello Suppose I have 3 references that goes one after another i.e [1][2][3].
But I want to see [1]-[3].
What should I do.
Thank you.
If you're using biblatex, you can use the numeric-comp style (see Section 3.3.1 of the documentation)
\usepackage[style=numeric-comp]{biblatex}
This will sort (and compress) the numbers inside the citation [8, 3, 1, 7, 2], becomes [1–3, 7, 8]
Additionally, if you want the citations to be numbered in the order they appear in the text, you can specify no sorting to biblatex with
\usepackage[style=numeric-comp, sorting=none]{biblatex}
So if the above example was the first citation in the text, it would become [1–5]
Using \cite package would probably resolve your problem.
You could add either of the following lines to your code:
\usepackage{cite}
\usepackage[noadjust]{cite}