TeX - LaTeX Asked by Samaursa on December 21, 2020
I am using bibliographystyle{ieeetr}
to ensure citations are numbered by their appearance in the paper. With multiple citations however, the numbers can be out or order because of the order they appeared somewhere earlier in the paper:
cite{paper1, paper2, paper3}
==> [5, 3, 10]
Is there a way to ensure that the numbers appear in order with multiple citations?
This functionality is provided by the cite package. By default it will also compress lists of citations so [1,2,3] becomes [1-3], however a document stating with
documentclass{article}
usepackage[nocompress]{cite}
bibliographystyle{ieeetr}
will produce the effect you wish. Sorting can be turned off by using the [nosort]
option.
Incidentally, I notice that there are alternative bibliography styles for IEEE Transactions, called ieeetrans
which include a variant ieeetranS
that sorts citations by default. These styles seem to be newer. May be you should consider using those instead.
Correct answer by Andrew Swann on December 21, 2020
For anyone wondering how this works in biblatex, you need to specify sortcites=true
option.
E.g. when loading the package:
usepackage[sortcites=true]{biblatex}
For more details, see this question.
Answered by Iizuki on December 21, 2020
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP