Question: 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.

Answer: 
There are ways to change how bibtex formats your citations. One way is to use the [cite](https://ctan.org/pkg/cite) package. Another is the [natbib](http://ctan.org/pkg/natbib) package perhaps with the sort&compress option (i.e., \usepackage[sort&compress]{natbib}). Many publications also have their own styles that will accomplish this, I often use the [revtex](https://journals.aps.org/revtex) styles even when not writing for APS journals since they work quite well. Try some of these to see if they help.
If you're using biblatex, you can use the `numeric-comp` style (see [Section 3.3.1](https://mirror.unpad.ac.id/ctan/macros/latex/contrib/biblatex/doc/biblatex.pdf#subsection.3.3) of the documentation)

```tex
\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

```latex
\usepackage[style=numeric-comp, sorting=none]{biblatex}

```

So if the above example was the first citation in the text, it would become `[1–5]`