## LaTeX forum ⇒ BibTeX, biblatex and biber ⇒ natbib won't sort&compress - among other things

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
jgassens
Posts: 14
Joined: Sat Dec 20, 2008 3:06 am

### natbib won't sort&compress - among other things

I'm continuing my LaTeX journey and have encountered another problem, this time with references. I'm using natbib but the only argument that works so far is the [super] argument. [sort&compress] crashes the thing.

Not only that, but I'm using hyperref and the links to the references are green, whilst all my other links are black - as they should be.

Finally, even though the references are superscript the commas that separate them are not so, if I have 10 references, they alternate superscript and normal script for the numbers and the commas.

So, those are my 3 problems. Any suggestions?

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm
Can you post an example of your source? The [sort&compress] option normally works fine. I suspect that your citation problems might be to do with writing:

\cite{One}\cite{Two}

rather than

\cite{One,Two}

Am I correct?
--
Joseph Wright
Joseph Wright

jgassens
Posts: 14
Joined: Sat Dec 20, 2008 3:06 am
Nope, I use:

\citet{ref,ref2,ref3,ref4}

I sort of wonder if sort&compress issues are some kind of conflict with something in my documentclass file which can be found here:

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm
There is nothing obvious in the class, but I may of course have missed something. An example would help, see:

http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl

for example.
--
Joseph Wright
Joseph Wright

jgassens
Posts: 14
Joined: Sat Dec 20, 2008 3:06 am
I was using /citet{} and not /citep{}

It works now. Thanks for your help!