0

There are plenty of questions asking for the other way around (which are usually answered by "use natbib"). I use natbib for a different reason: I use IEEEtran and need \citet-style referencing, so I load natbib like \usepackage[numbers]{natbib}.

However, if I use \cite{ref1, ref2}, I get references like [1,2], but what I need is [1], [2], which I would get if I wouldn't load natbib. How can I enforce references in the form of [1], [2] using natbib?

11
  • Using \setcitestyle{citesep={], [}} I can produce a hacky "[1], [ 2]"-style citing, but how to get rid of the extra whitespace?
    – kostrykin
    Commented Jul 18, 2021 at 23:13
  • 2
    The IEEEtran styles are designed to be used with the cite package not natbib.
    – Alan Munn
    Commented Jul 18, 2021 at 23:14
  • @AlanMunn No, this is exactly the opposite case I mentioned in the first sentence. I do get citations like [1,2,3], but what I want is [1], [2], [3]
    – kostrykin
    Commented Jul 18, 2021 at 23:17
  • @AlanMunn I know, but the "cite" package has no \citet right?
    – kostrykin
    Commented Jul 18, 2021 at 23:20
  • 1
    True, the answer undoes what you want, but what you want is what the OP in that question is getting with the cite package, which is what you need to use for IEEEtran. The citet vs. citep distinction only makes sense with author/year styles. So just use \cite.
    – Alan Munn
    Commented Jul 18, 2021 at 23:20

0

Browse other questions tagged .