4

I am currently trying to get the references to be listed in order of appearance in my document, rather than order in bibliography.

Some info:

I am using natbib:

    \usepackage[numbers,compress]{natbib}
    \citep{}

(as I want to be able to have references like: [2-5], and I want the numerical representation of the bibitem).

I have tried:\bibliographystyle{unsrtnat}.

This works, but not when I have the numbers enabled for the natbib package; that is, the ordering I want works for non-numbered referencing, but NOT for numbered referencing.

Been look everywhere, can't find the answer!

Been through and removed .aux files a few times already.

Example of what I have:

    Piezoelectric technology [3][2].

Where as I want is:

    Piezoelectric technology [2][3].

without having to change the bib file.

I have no problem with using another type of bibliography package as long as I can order as I wish and concatenation of references, i.e: [3-5].

\documentclass[11pt , a4paper , twoside , openright ]{report} 
\usepackage[numbers]{natbib} 
\begin{document} 
Hello, I want to cite this document with two citations, one which precedes the 
other in .bib, but in order here \cite{katz}\cite{mcgahey}.
\bibliographystyle{unsrtnat} 
\bibliography{bibl} 
\end{document}

closed as unclear what you're asking by egreg, user13907, Zarko, user36296, Andrew Oct 3 '16 at 22:07

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Welcome to TeX.SX! Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – user31729 Aug 1 '14 at 1:49
  • Instead of providing two separate \cite commands, have you tried a single \cite command with two arguments, i.e., \cite{katz,mcgahey}? – Mico Aug 1 '14 at 3:58
  • 1
    I can't reproduce the issue. Try with sort&compress instead of compress, but you should use \cite{katz,mcgahey} – egreg Aug 1 '14 at 10:41
  • Seemed to solve it. I used \cite{katz,mcgahey} along with fixing a style sheet which my university requires I use. Thanks for your help – novastorm Aug 3 '14 at 2:45
  • I'm voting to close this question as off-topic because solved in comments – user36296 Oct 3 '16 at 21:51