0

I am trying to compile a manuscript using elsearticle template. I have had a hard time making hyperref work together with natbib. I know it should be loaded as the last package, but it still causes some issues like de-compressing the multiple citations in my text. So in the end, the only solution remained was to remove it. Just FYI, my document contains a lot of packages and I really don't know if hyperref is possibly incompatible with any of those packages (is there a list of packages like that?). Does anyone have any clue what may cause hyperref not go along well with natbib and its options?

  • 2
    so you have an unknown problem with an unknown combinations of packages. Do you really expect us to be able to tell you what is going on? elsarticle already loads natbib, but not with sort&compress, so it is quite impossible to guess what you are actually doing. – Ulrike Fischer Dec 15 '19 at 22:06
  • Actually the problem is not unknown. sort&compress doesn't work with hyperref as I have clearly explained: "it causes decompressing of citations". I am just asking if a certain combination of packages I am using could be a problem. If not, does anyone have any clue what could be the issue? – Hossein Dec 16 '19 at 20:12
  • 1
    Well I'm one of the hyperref maintainer and I have no idea what you mean. Show a complete example. – Ulrike Fischer Dec 16 '19 at 21:29
  • ok let me put it this way: when I use natbib with the following options: [numbers, sort&compress] I get my multiple citations in the text like [1, 8-12]. But, when I put hyperref "as the last package" to get my references, figure and table citations hyperlinked, it converts my multiple references to [1, 8, 9 , 10, 11, 12]. – Hossein Dec 17 '19 at 2:16
  • 1
    Edit your question and add an small but complete example demonstrating your problem. – Ulrike Fischer Dec 17 '19 at 7:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.