works OK for me. The three references get the back references (I attach the pdf file obtained after compilation of the code). Thus, if you are having troubles, we will need to see a minimal working example that allow us to reproduce the problem that you mentioned.
Thx for your reply. If figured out what causes the problem: it's the addition of the option "sort&compress" for the natbib package (\usepackage[sort&compress,comma, numbers]{natbib}). It makes multiple refs [1,2,3] appear as [1-3]. Since 2 isn't on the page, it doesn't get backrefs. 1 and 3 are fine (page(s) still works like a charm) but 2 is skipped since it is not displayed. If I remove the option, all backrefs appear as they should.
I haven't been able to find a way around this. Can you think of one? Except for the very obvious removal of the sort&compress option; refs like [6, 7, 8, 9, 10, 11] just look awful…
I still haven't found a solution to the problem I prviously described. I have however found some sort of work around - placing the missing refs outside the page - although it seem pretty ugly to me. But hej, it works....
pvmeel wrote:...
I have a new question though: how to make a ref that appears twice on a page get only one pagebackref. Now it looks like: (pages, 3, 5, 13, 13)...
Change the corresponding part of my previous code to
pvmeel wrote:
If figured out what causes the problem: it's the addition of the option "sort&compress" for the natbib package (\usepackage[sort&compress,comma, numbers]{natbib}). It makes multiple refs [1,2,3] appear as [1-3]. Since 2 isn't on the page, it doesn't get backrefs. 1 and 3 are fine (page(s) still works like a charm) but 2 is skipped since it is not displayed. If I remove the option, all backrefs appear as they should.
I haven't been able to find a way around this. Can you think of one? Except for the very obvious removal of the sort&compress option; refs like [6, 7, 8, 9, 10, 11] just look awful…
A dirty approach that worked for me:
1) compile (bibtex + pdflatex) without the sort&compress option of natbib, running pdflatex as many times as necesasary for the backrefs to appear as desired.
2) compile again (bibtex + pdflatex) with the sort&compress option of natbib, but only enough times for the references to appear compressed, e.g. [1-4]. At this point, the backrefs should remain intact (i.e. correct page numbers from step 1), as an additional execution of pdflatex is required to change the backrefs (precisely what you don't want to do in this case).
I also created an account just to post on this thread.
I adapted the hack suggested by pvmeel to avoid having to add a minipage every time I cite something. The intention is to redefine the cite command so it creates text outside of the page for pagebackref to see.