Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
    
Possibly duplicate overrule-numeric-comp-sorting-for-one-cite-command –  Kurt Aug 29 '12 at 1:03

1 Answer 1

up vote 5 down vote accepted

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.