I found how to make \supercite
with square brackets and grouped at Biblatex supercite with square brackets and grouped
So I add the option autocite=superscript
for biblatex package, and get this MWE:
\documentclass{article}
\usepackage[autocite=superscript,citestyle=numeric-comp]{biblatex}
\DeclareCiteCommand{\supercite}[\mkbibsuperscript]
{\usebibmacro{cite:init}%
\let\multicitedelim=\supercitedelim
\iffieldundef{prenote}
{}
{\BibliographyWarning{Ignoring prenote argument}}%
\iffieldundef{postnote}
{}
{\BibliographyWarning{Ignoring postnote argument}}%
\bibopenbracket}%
{\usebibmacro{citeindex}%
\usebibmacro{cite:comp}}
{}
{\usebibmacro{cite:dump}\bibclosebracket}
\usepackage{filecontents}
\begin{filecontents}{test.bib}
@book{A01,
author = {Author, A.},
year = {2001},
title = {Alpha},
}
@book{B02,
author = {Buthor, B.},
year = {2002},
title = {Bravo},
}
@article{C03,
author = {Cuthor, C.},
year = {2003},
title = {Charlie},
}
\end{filecontents}
\addbibresource{test.bib}
\begin{document}
We are citing \autocites{A01}{B02}{C03} and \autocites{A01}{C03} and \autocites*{A01}{B02}.
\printbibliography
\end{document}
But the number is not grouped. I get [1],[2],[3]
instead of [1-3]
.