I am using bibtex, with the bibliography style ieeetr to create my references. I have read the IEEE style manual, and I know that I should leave citations in separate sets of brackets, e.g., [3], [4].
However, I know that they should be hyphenated when consecutive, in groups of 3 or more, e.g., [5]-[10] but the ieetr style doesn't seem to do this automatically. Any ideas? I have already tried using the cite package.
MWE:
\documentclass{article}
\usepackage{cite}
\begin{document}
This is my text, and here are some citations \cite{article1}, \cite{article2}, \cite{article3}.
\bibliography{examplebib}
\bibliographystyle{ieeetr}
\end{document}
And the bib file "examplebib.bib"
@article{article1,
author = {Doe, John},
title = {Title of article},
journal = {journal of article},
year = {2017},
volume = {11},
number = {1},
pages = {11--13},
publisher = {Journal Publisher},
}
@article{article2,
author = {Doe, John},
title = {Title of article},
journal = {journal of article},
year = {2017},
volume = {11},
number = {1},
pages = {11--13},
publisher = {Journal Publisher},
}
@article{article3,
author = {Doe, John},
title = {Title of article},
journal = {journal of article},
year = {2017},
volume = {11},
number = {1},
pages = {11--13},
publisher = {Journal Publisher},
}