BibTeX, biblatex and biber ⇒ Citation links to bibliography at end
Citation links to bibliography at end
i am trying to make my citations in my paper linked to the bibliography at the end. Such that when I click at the citation (e.g. [1]) in the chapter, it takes me to theend of chapter where the reference actually sits with all details.
Can some one help me with how to do this.
RA
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Citation links to bibliography at end
Hyperref Manual
Re: Citation links to bibliography at end
Actually hyperref is not doing so automatically in my case:
Here is my hyperref statements:
\urlstyle{rm}
\usepackage[all]{hypcap}
\hypersetup{
bookmarksnumbered,
pdfstartview={FitH},
citecolor={blue},
linkcolor={blue},
urlcolor={black},
pdfpagemode={UseOutlines}
}
\makeatletter
\newcommand\org@hypertarget{}
\let\org@hypertarget\hypertarget
\renewcommand\hypertarget[2]{%
\Hy@raisedlink{\org@hypertarget{#1}{}}#2%
}
\makeatother
%algorithm includes (must go after hyperref)
\usepackage{algorithm}
\usepackage[noend]{algorithmic}
- Stefan Kottwitz
- Site Admin
- Posts: 10359
- Joined: Mon Mar 10, 2008 9:44 pm
Citation links to bibliography at end
I am using backref , but its not linking my citation to the biliography at the end. No link comes up at the citation number.
This is how I am actually doing it:
Code: Select all
\usepackage[
pdfauthor={derajan},
pdftitle={How to do this},
pdfstartview=XYZ,
bookmarks=true,
colorlinks=true,
linkcolor=blue,
urlcolor=blue,
citecolor=blue,
pdftex,
bookmarks=true,
linktocpage=true, % makes the page number as hyperlink in table of content
hyperindex=true
]{hyperref}
\usepackage{hyperref}
%\usepackage{natbib}
\urlstyle{rm}
\usepackage[all]{hypcap}
\hypersetup{
backref=true
bookmarksnumbered,
pdfstartview={FitH},
citecolor={blue},
linkcolor={blue},
urlcolor={black},
pdfpagemode={UseOutlines}
}
Thanx,
derajan
Re: Citation links to bibliography at end
You call the hyperref package twice, maybe this is an issue?
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Citation links to bibliography at end
There is a missing comma in the second setup block for hyperref right behind the backref option.derajan wrote:[...] I am using backref , but its not linking my citation to the biliography at the end. No link comes up at the citation number. [...]
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Citation links to bibliography at end
Thanx I tried both options (putting comma after backref, removing second hyperef option).
But still its not doing what I want it to do.
derajan
Citation links to bibliography at end
I cite in the followinf manner: Bla bla bla \citep{Pretorius2001} bla bla bla. For more than one citation, it is the same, but look like this: \citep{Pretorius2001a, Pretorius2001b}
When I use the backref in the following manner:
Code: Select all
\usepackage[hyperpageref]{backref}
The 50, 51 and 55 are the pages where the citations can be found. This is confusing, as it look as if it should be part of the reference...Pretorius, I.S. (2001). Gene technology in winemaking: new approaches to an ancient art. Agric. Conspec. Sci., vol. 66, no. 1, pp. 27–47. 50, 51, 55
I would like it to look like:
When I add the following code below \usepackage[hyperpageref]{backref} I get the following output:Pretorius, I.S. (2001). Gene technology in winemaking: new approaches to an ancient art. Agric. Conspec. Sci., vol. 66, no. 1, pp. 27–47.
3 citations on 3 pages 50, 51, 55
Code: Select all
% Some language options are detected by package backref.
% This affects the following macros:
% \backrefpagesname
% \backrefsectionsname
% \backrefsep
% \backreftwosep
% \backreflastsep
\renewcommand*{\backref}[1]{
% default interface
% #1: backref list
%
% We want to use the alternative interface,
% therefore the definition is empty here.
}
\renewcommand*{\backrefalt}[4]{%
% alternative interface
% #1: number of distinct back references
% #2: backref list with distinct entries
% #3: number of back references including duplicates
% #4: backref list including duplicates
% \par
% #3 citation(s) on #1 page(s):
% #2,\par
\ifnum#1=1 %
\ifnum#3=1 %
1 citation on page %
\else
#3 citations on page %
\fi
\else
#3 citations on #1 pages %
\fi
#2,\par
% \ifnum#3=1 %
% 1 citation located at page %
% \else
% #3 citations located at pages %
% \fi
% #4.\par
}
Notice that there is suddenly no citations... ??? When I remove the "new" code it works again, and only the numbers are displayed.Pretorius, I.S. (2001). Gene technology in winemaking: new approaches to an ancient art. Agric. Conspec. Sci., vol. 66, no. 1, pp. 27–47.
0 citations on 0 pages
Have anybody come across the same problem? Any help will be greatly appreciated, my thesis is due in 3 weeks.
Thanks for any help!
Citation links to bibliography at end
From the Internet (not my post):
OK, I don't use \bibitem, I use \usepackage{chapterbib} and my uni's bib style based on Natbib....you have forgotten the empty lines after the \bibitem entries.
backref does need them to detect the end of the entry.
Because I use the memoir class and include my chapters (and references at the end of each chapter), I have the following at the end of each chapter:
- \bibliographystyle{usmeg-a}
\bibliography{dmthesisRef}
I hope someone have and idea, or can point me to another Post maybe I posted in the wrong Forum?
Thanks