This question already has an answer here:

a summary of my code would be what follows

blah blah blah \cite{ref1, ref2, ref3, ref4, ref10}

With this code, I end up with something like this

blah blah blah [1,2,3,4,10]

However, I would like a more compact notation like

blah blah blah [1-4, 10]

How should I edit the prelude in order to achieve that? I have looked it up but haven't found an answer

Thanks in advance

marked as duplicate by David Purton, Phelype Oleinik, siracusa, Mensch, moewe biblatex Apr 30 at 4:10

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.