<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Dear all,<br><br>I am using LaTeX to write my PhD thesis since about 3 months now. The mix natbib/chapterbib/hyperref has worked fine. But I report here a problem with back references (backref package of hyperref bundle), i.e. the pointers at the end of each bibliography item that point to the page where that item was referenced. I also use bibtex and pdftex (all hyperlinked of course).<br><br>When I set my source for a global bibliography at the end of the document everything works fine. The default pagebackref option of hyperref adds the list of pages where each item was referenced, only within each chapter. Even better, I can get the alternative interface backrefalt to format the backrefs my own way, like:<br>...<br> \renewcommand*{\backref}[1]{}<br> \renewcommand*{\backrefalt}[4]{%<br> \ifcase #1 %<br> % case: not cited<br> (Not cited).<br> \or<br> % case: cited on exactly one page<br> (Cited on page~#2).%<br> \else<br> % case: cited on multiple pages<br> (Cited on pages~#2).<br> \fi}<br>...<br>So far so good. Now I add the chapterbib package (following all considerations from the manual and some hours of internet),<br>...<br> \usepackage[sectionbib]{chapterbib} <br> \usepackage[english, dutch]{babel} % load after chapterbib<br>...<br>And ALMOST everything works fine. Nice bibliographies per chapter, hyperlinks from main text to references work.<br>BUT the problem is with the behavior of the backrefs, because they not only point to the reference within the corresponding chapter, but they also point to occurrences of the same item in OTHER chapters. Same behavior with the default\backref or with the alternative \backrefalt interfaces. This is confusing, since if one clicks in this backref one ends up in a page in another chapter where that item has a different numbering (when using numbered bibtex style). At least there should be an option to choose if backreferencing to the same bibitem in another chapter is allowed or not.<br>I must mention I use the same .bib library for all chapters. A possible way out would be to use different keys in different .bib for each chapter, but I really don't want that option (>100 bibitems per chapter, and my keys are automatically generated by Zotero).<br><br>Ok, say one can live with this redundancy of inconsistent backref links. Now we add natbib, to get some sorting of reference numbers,<br>...<br> \usepackage[square,comma,numbers,sort,sectionbib]{natbib} % if 'sort&compress' check backrefs<br> \usepackage{chapterbib} % give sectionbib option to natbib package<br> \usepackage[english, dutch]{babel} % load after chapterbib<br>...<br>And voila! the backrefs pointing outside the current chapter for each bibitem are gone, BUT it works ONLY for the standard \backref interface.<br>The moment I introduce the code for the alternative interface \backrefalt I ALWAYS get the text "(Not cited)." at the end of my references, i.e. the code of \backrefalt is broken. After playing with printing its 4 parameters I see they are either 0 or non-existent.<br><br>IN CONCLUSION:<br>1) Global bibliography using hyperref (without chapterbib) gives proper backrefs (both \backref and \backrefalt). I also tried including natbib and it also works fine.<br>2) Bibliographies per chapter using hyperref/chapterbib (without natbib) gives backrefs (both \backref and \backrefalt) that can point outside current chapter. Not desired but I can live with it.<br>3) Bibliographies per chapter using hyperref/chapterbib/natbib works perfect only with standard \backref interface.<br>4) Bibliographies per chapter using hyperref/chapterbib/natbib break the functionality of the alternative \backrefalt interface.<br><br>So I proceed with my thesis using option 3) of course. I just wonder whom of the developers to address to get the customized backrefs working with the mix hyperref/chapterbib/natbib. Any workaround would be appreciated.<br><br>Regards,<br><br>Ivan Vera<br>PhD researcher (for not too long) at University of Twente, The Netherlands.<br><br>PS: I am still kind of newbie with LaTeX, first post on TUG. Sorry if this post makes your life difficult.<br><br>                                            <br /><hr />Windows Live Hotmail: <a href='http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_4:092009' target='_new'>Your friends can get your Facebook updates, right from HotmailŪ.</a></body>
</html>