1

I am using classicthesis package version 4.1. The following is an example of the problem that I have with back-referencing. The resulted document does not have back-referencing in the bibliography although I enabled it by setting: \setboolean{enable-backrefs}{true}.

enter image description here

I used the bibliography style, abbrvunsrtnat.bst, that has been posted in here.

\documentclass[
                openright,
                titlepage, numbers=noenddot, headinclude,%1headlines,
                footinclude=true, cleardoublepage=empty,
                BCOR=30mm, paper=letter, fontsize=11pt, % Binding correction, paper type and font size
                ngerman, american, % Languages
                ]{scrreprt}


\PassOptionsToPackage{%
                    eulerchapternumbers,
                    listings,
                    pdfspacing,
                    subfig,
                    beramono,
                    parts}{classicthesis}


\PassOptionsToPackage{square,numbers,sort&compress}{natbib}
 \usepackage{natbib}


\usepackage[position=t,singlelinecheck=off,font={it}]{subfig}

\usepackage{ifthen} % Allows the user of the \ifthenelse command
\newboolean{enable-backrefs} % Variable to enable backrefs in the bibliography
\setboolean{enable-backrefs}{true} % Variable value: true or false

% ---------------------------------------------------------------------------------------
\newcommand{\backrefnotcitedstring}{\relax} % (Not cited.)
\newcommand{\backrefcitedsinglestring}[1]{(Cited on page~#1.)}
\newcommand{\backrefcitedmultistring}[1]{(Cited on pages~#1.)}
\ifthenelse{\boolean{enable-backrefs}} % If backrefs were enabled
{
        \PassOptionsToPackage{hyperpageref}{backref}
        \usepackage{backref} % to be loaded after hyperref package 
                \renewcommand{\backreftwosep}{ and~} % separate 2 pages
                \renewcommand{\backreflastsep}{, and~} % separate last of longer list
                \renewcommand*{\backref}[1]{}  % disable standard
                \renewcommand*{\backrefalt}[4]{% detailed backref
                \ifcase #1 
                    \backrefnotcitedstring
                \or
                    \backrefcitedsinglestring{#2}
                \else
                    \backrefcitedmultistring{#2}
                \fi}
}{\relax} 

\PassOptionsToPackage{pdftex,hyperfootnotes=false,pdfpagelabels}{hyperref}
\usepackage{hyperref}  % backref linktocpage pagebackref
\pdfcompresslevel=9
\pdfadjustspacing=1

\hypersetup{
            colorlinks=true, linktocpage=true, pdfstartpage=1, pdfstartview=FitV,
            breaklinks=true, pdfpagemode=UseNone, pageanchor=true, pdfpagemode=UseOutlines,
            plainpages=false, bookmarksnumbered, bookmarksopen=true, bookmarksopenlevel=1,
            hypertexnames=true, pdfhighlight=/O, %
}   

\usepackage{classicthesis}

\begin{document}
This is test for back-referencing. \citep{knuth:1976}. 


\bibliographystyle{abbrvunsrtnat}

\bibliography{Bibliography}

\end{document}
3
  • You even have it in your code: backref should be loaded after hyperref, but you do it the other way round.
    – mafp
    May 23 '13 at 21:23
  • 1
    @@mafp: Thanks a lot. I loaded backref after hyperref and it worked perfectly.
    – user578
    May 23 '13 at 21:28
  • @Ahmad thanks! It fixed my problem. But on my case, I needed to load \usepackage[hyperpageref]{backref} before my citation package \usepackage[alf]{abntex2cite}. That package explicitly only enables the back references when the package backref is loaded: https://github.com/abntex/abntex2/blob/master/tex/latex/abntex2/abntex2cite.sty#L298-L302
    – user
    Aug 25 '17 at 18:16
1

You even have it in your code: backref should be loaded after hyperref, but you do it the other way round.

It fixed my problem, but on my case, I needed to load \usepackage[hyperpageref]{backref} before my citation package \usepackage[alf]{abntex2cite}. That package explicitly only enables the back references when the package backref is loaded:

  1. https://github.com/abntex/abntex2/blob/master/tex/latex/abnt‌​ex2/abntex2cite.sty#‌​L298-L302

Not the answer you're looking for? Browse other questions tagged or ask your own question.
https://tex.stackexchange.com/questions/115828/backreferencing-in-classicthesis-package-does-not-work
tex.stackexchange.com
crawl=CC-MAIN-2022-05
125747
application/http; msgtype=response
sha1:T4K7FUASE4YLUVCLZBUSMFQ745BD4GCF
<urn:uuid:fc855619-675a-418a-92c2-e3a306eff355>
2022-01-20T02:23:19Z
151.101.193.69
text/html
sha1:R2HQJR445NMCRZ3SIEOY4UGGKOH4YSJ5
<urn:uuid:e687e5b8-8b8e-424e-b60b-98300ce7fac5>
https://tex.stackexchange.com/questions/115828/backreferencing-in-classicthesis-package-does-not-work
response
<urn:uuid:685579f9-8995-4f5e-af94-e61b747c03de>
isPartOf: CC-MAIN-2022-05
publisher: Common Crawl
description: Wide crawl of the web for January 2022
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-78
software: Apache Nutch 1.18 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.3-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: https://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/